summaryrefslogtreecommitdiff
path: root/core/launcher/desktop.cpp
Unidiff
Diffstat (limited to 'core/launcher/desktop.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.cpp23
1 files changed, 19 insertions, 4 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index 9863187..387650b 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -473,16 +473,16 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e )
473 cardSendTimer->start( 2000, TRUE ); 473 cardSendTimer->start( 2000, TRUE );
474 connect( cardSendTimer, SIGNAL( timeout() ), this, SLOT( sendCard() ) ); 474 connect( cardSendTimer, SIGNAL( timeout() ), this, SLOT( sendCard() ) );
475 } 475 }
476 return TRUE; 476 return TRUE;
477 } 477 }
478// menu key now opens application menu/toolbar 478// menu key now opens application menu/toolbar
479 if ( ke->simpleData.keycode == Key_F11 ) { 479// if ( ke->simpleData.keycode == Key_F11 ) {
480 if ( press ) emit menu(); 480// if ( press ) emit menu();
481 return TRUE; 481// return TRUE;
482 } 482// }
483 483
484 if ( ke->simpleData.keycode == Key_F12 ) { 484 if ( ke->simpleData.keycode == Key_F12 ) {
485 while ( activePopupWidget() ) 485 while ( activePopupWidget() )
486 activePopupWidget() ->close(); 486 activePopupWidget() ->close();
487 if ( press ) 487 if ( press )
488 emit launch(); 488 emit launch();
@@ -1044,6 +1044,21 @@ void Desktop::screenClick()
1044void Desktop::soundAlarm() 1044void Desktop::soundAlarm()
1045{ 1045{
1046 if ( qpedesktop-> alarmsound ) 1046 if ( qpedesktop-> alarmsound )
1047 ODevice::inst ( ) -> alarmSound ( ); 1047 ODevice::inst ( ) -> alarmSound ( );
1048} 1048}
1049 1049
1050bool Desktop::eventFilter( QObject *, QEvent *ev )
1051{
1052 if ( ev->type() == QEvent::KeyPress ) {
1053 QKeyEvent *ke = (QKeyEvent *)ev;
1054 if ( ke->key() == Qt::Key_F11 ) { // menu key
1055 QWidget *active = qApp->activeWindow();
1056 if ( active && active->isPopup() ) {
1057 active->close();
1058 }
1059 raiseMenu();
1060 return TRUE;
1061 }
1062 }
1063 return FALSE;
1064}