Changeset 11789
- Timestamp:
- 08/28/08 21:51:17 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r11661 r11789 3151 3151 * is found, activates it and returns true. Otherwise returns false. 3152 3152 */ 3153 bool VBoxConsoleView::processHotKey (const QKeySequence &key, const QList<QAction*>& data) 3154 { 3155 foreach (QAction *pAction, data) 3153 bool VBoxConsoleView::processHotKey (const QKeySequence &aKey, 3154 const QList <QAction*> &aData) 3155 { 3156 foreach (QAction *pAction, aData) 3156 3157 { 3157 3158 if (QMenu *menu = pAction->menu()) 3158 return processHotKey ( key, menu->actions());3159 return processHotKey (aKey, menu->actions()); 3159 3160 3160 3161 QString hotkey = VBoxGlobal::extractKeyFromActionText (pAction->text()); 3161 if ( !hotkey.isEmpty())3162 { 3163 if ( key.matches (QKeySequence (hotkey)) == QKeySequence::ExactMatch)3162 if (pAction->isEnabled() && !hotkey.isEmpty()) 3163 { 3164 if (aKey.matches (QKeySequence (hotkey)) == QKeySequence::ExactMatch) 3164 3165 { 3165 3166 /*

