-rw-r--r-- | library/qpemenubar.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/library/qpemenubar.cpp b/library/qpemenubar.cpp index 4aa0bf3..3e5bad5 100644 --- a/library/qpemenubar.cpp +++ b/library/qpemenubar.cpp | |||
@@ -212,36 +212,32 @@ bool QPEMenuToolFocusManager::eventFilter( QObject *object, QEvent *event ) | |||
212 | mb->goodbye(); | 212 | mb->goodbye(); |
213 | moveFocus( TRUE ); | 213 | moveFocus( TRUE ); |
214 | return TRUE; | 214 | return TRUE; |
215 | } else if ( i < 0 ) { | 215 | } else if ( i < 0 ) { |
216 | mb->goodbye(); | 216 | mb->goodbye(); |
217 | moveFocus( FALSE ); | 217 | moveFocus( FALSE ); |
218 | return TRUE; | 218 | return TRUE; |
219 | } | 219 | } |
220 | QMenuItem *mi = mb->findItem( mb->idAt(i) ); | 220 | QMenuItem *mi = mb->findItem( mb->idAt(i) ); |
221 | if ( mi->isEnabled() && !mi->isSeparator() ) { | 221 | if ( mi->isEnabled() && !mi->isSeparator() ) { |
222 | break; | 222 | break; |
223 | } | 223 | } |
224 | } | 224 | } |
225 | } | 225 | } |
226 | } | 226 | } |
227 | } | 227 | } |
228 | if ( ke->key() == Key_F11 ) { | ||
229 | setActive( !isActive() ); | ||
230 | return TRUE; | ||
231 | } | ||
232 | } else if ( event->type() == QEvent::KeyRelease ) { | 228 | } else if ( event->type() == QEvent::KeyRelease ) { |
233 | QKeyEvent *ke = (QKeyEvent *)event; | 229 | QKeyEvent *ke = (QKeyEvent *)event; |
234 | if ( isActive() ) { | 230 | if ( isActive() ) { |
235 | if ( object->inherits( "QButton" ) ) { | 231 | if ( object->inherits( "QButton" ) ) { |
236 | // Deactivate when a button is selected | 232 | // Deactivate when a button is selected |
237 | if ( ke->key() == Key_Space ) | 233 | if ( ke->key() == Key_Space ) |
238 | QTimer::singleShot( 0, this, SLOT(deactivate()) ); | 234 | QTimer::singleShot( 0, this, SLOT(deactivate()) ); |
239 | } | 235 | } |
240 | } | 236 | } |
241 | } else if ( event->type() == QEvent::FocusIn ) { | 237 | } else if ( event->type() == QEvent::FocusIn ) { |
242 | if ( isActive() ) { | 238 | if ( isActive() ) { |
243 | // A non-menu/tool widget has been selected - we're deactivated | 239 | // A non-menu/tool widget has been selected - we're deactivated |
244 | QWidget *w = (QWidget *)object; | 240 | QWidget *w = (QWidget *)object; |
245 | if ( !w->isPopup() && !list.contains( GuardedWidget( w ) ) ) { | 241 | if ( !w->isPopup() && !list.contains( GuardedWidget( w ) ) ) { |
246 | inFocus = 0; | 242 | inFocus = 0; |
247 | } | 243 | } |