Changeset 31108 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 26, 2010 11:39:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r30792 r31108 518 518 if (m_views[theListOfViewIds[i]]->hasFocus()) 519 519 { 520 captureKeyboard(theListOfViewIds[i]); 520 /* Capture keyboard: */ 521 #ifdef Q_WS_WIN 522 if (!uisession()->isAutoCaptureDisabled() && m_globalSettings.autoCapture() && 523 GetAncestor(m_views[theListOfViewIds[i]]->winId(), GA_ROOT) == GetForegroundWindow()) 524 #else /* Q_WS_WIN */ 525 if (!uisession()->isAutoCaptureDisabled() && m_globalSettings.autoCapture()) 526 #endif /* !Q_WS_WIN */ 527 captureKeyboard(theListOfViewIds[i]); 528 /* Reset the single-time disable capture flag: */ 529 if (uisession()->isAutoCaptureDisabled()) 530 uisession()->setAutoCaptureDisabled(false); 521 531 break; 522 532 }
Note:
See TracChangeset
for help on using the changeset viewer.