author | llornkcor <llornkcor> | 2002-09-21 22:29:12 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-21 22:29:12 (UTC) |
commit | d9910f33f40afb465164fb434677d6641272623d (patch) (side-by-side diff) | |
tree | 075b1078724d54fa7f5bbcd69d0b5a66f1205543 | |
parent | b570ab8d46fc134f16d5959861869e36af50bd38 (diff) | |
download | opie-d9910f33f40afb465164fb434677d6641272623d.zip opie-d9910f33f40afb465164fb434677d6641272623d.tar.gz opie-d9910f33f40afb465164fb434677d6641272623d.tar.bz2 |
dont send keyRegister message if keycode is 0, or key is released
-rw-r--r-- | core/launcher/desktop.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index bca95b2..4640a12 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp @@ -424,12 +424,13 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) when user presses key, unless keyboard has been requested from app. will not send multiple repeats if user holds key i.e. one shot */ - if ( !keyRegisterList.isEmpty() ) { + if ( !keyRegisterList.isEmpty() && ke->simpleData.keycode !=0 && press) { +// qDebug("<<<<<<<<<<<<<keycode %d", ke->simpleData.keycode); KeyRegisterList::Iterator it; for ( it = keyRegisterList.begin(); it != keyRegisterList.end(); ++it ) { - if ( ( *it ).getKeyCode() == ke->simpleData.keycode && !autoRepeat && !keyboardGrabbed() && press ) { + if ( ( *it ).getKeyCode() == ke->simpleData.keycode && !autoRepeat && !keyboardGrabbed() ) { if ( press ) qDebug( "press" ); else qDebug( "release" ); |