Changeset 10339 in vbox for trunk/src/VBox
- Timestamp:
- Jul 7, 2008 4:26:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/QIMainDialog.cpp
r10335 r10339 263 263 case QEvent::KeyPress: 264 264 { 265 /* Make sure that we only proceed if no 266 * popup or other modal widgets are open. */ 267 if (aObject != this || 268 qApp->activePopupWidget() != NULL || 269 !(qApp->activeModalWidget() == this || 270 qApp->activeModalWidget() == NULL)) 271 break; 265 272 QKeyEvent *event = static_cast<QKeyEvent*> (aEvent); 266 273 #ifdef Q_WS_MAC 267 274 if (event->modifiers() == Qt::ControlModifier && 268 event->key() == Qt::Key_Period && 269 aObject == this && 270 qApp->activePopupWidget() == NULL && 271 (qApp->activeModalWidget() == this || 272 qApp->activeModalWidget() == NULL)) 275 event->key() == Qt::Key_Period) 273 276 reject(); 274 277 else … … 294 297 case Qt::Key_Escape: 295 298 { 296 /* Make sure that we only reject if no 297 * popup or other modal widgets are open. */ 298 if (aObject == this && 299 qApp->activePopupWidget() == NULL && 300 (qApp->activeModalWidget() == this || 301 qApp->activeModalWidget() == NULL)) 302 { 303 reject(); 304 return true; 305 } 299 reject(); 300 return true; 306 301 break; 307 302 }
Note:
See TracChangeset
for help on using the changeset viewer.