-rw-r--r-- | core/launcher/desktop.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index ce99bad..a00fae2 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp @@ -189,4 +189,6 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) bool press = ke->simpleData.is_press; + if (!keyRegisterList.isEmpty()) + { KeyRegisterList::Iterator it; for( it = keyRegisterList.begin(); it != keyRegisterList.end(); ++it ) @@ -195,4 +197,5 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) QCopEnvelope((*it).getChannel().utf8(), (*it).getMessage().utf8()); } + } if ( !keyboardGrabbed() ) { @@ -229,10 +232,5 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) } } - /* - if ( ke->simpleData.keycode == 4096 ) { - QCopEnvelope e("QPE/VMemo", "toggleRecord()"); - return TRUE; - } - */ + if ( ke->simpleData.keycode == Key_F34 ) { if ( press ) emit power(); |