summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/desktop.cpp5
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
@@ -422,16 +422,17 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e )
422 /* 422 /*
423 app that registers key/message to be sent back to the app, when it doesn't have focus, 423 app that registers key/message to be sent back to the app, when it doesn't have focus,
424 when user presses key, unless keyboard has been requested from app. 424 when user presses key, unless keyboard has been requested from app.
425 will not send multiple repeats if user holds key 425 will not send multiple repeats if user holds key
426 i.e. one shot 426 i.e. one shot
427 */ 427 */
428 if ( !keyRegisterList.isEmpty() ) { 428 if ( !keyRegisterList.isEmpty() && ke->simpleData.keycode !=0 && press) {
429// qDebug("<<<<<<<<<<<<<keycode %d", ke->simpleData.keycode);
429 KeyRegisterList::Iterator it; 430 KeyRegisterList::Iterator it;
430 for ( it = keyRegisterList.begin(); it != keyRegisterList.end(); ++it ) { 431 for ( it = keyRegisterList.begin(); it != keyRegisterList.end(); ++it ) {
431 if ( ( *it ).getKeyCode() == ke->simpleData.keycode && !autoRepeat && !keyboardGrabbed() && press ) { 432 if ( ( *it ).getKeyCode() == ke->simpleData.keycode && !autoRepeat && !keyboardGrabbed() ) {
432 if ( press ) 433 if ( press )
433 qDebug( "press" ); 434 qDebug( "press" );
434 else 435 else
435 qDebug( "release" ); 436 qDebug( "release" );
436 QCopEnvelope( ( *it ).getChannel().utf8(), ( *it ).getMessage().utf8() ); 437 QCopEnvelope( ( *it ).getChannel().utf8(), ( *it ).getMessage().utf8() );
437 } 438 }