Changeset 63608 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 22, 2016 1:37:35 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 110318
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r63601 r63608 39 39 # ifdef VBOX_WS_X11 40 40 # include <QX11Info> 41 # if QT_VERSION >= 0x050000 41 # endif 42 # if !defined(VBOX_WS_MAC) && QT_VERSION >= 0x050000 42 43 # include <QTimer> 43 # endif44 44 # endif 45 45 … … 281 281 * a low-level keyboard-hook is used instead. 282 282 * It is being installed on focus-in event and uninstalled on focus-out. 283 * S.a. UIKeyboardHandler::eventFilter for more information. */ 283 * S.a. UIKeyboardHandler::eventFilter for more information. 284 * 285 * Besides that, we do not grab the keyboard as soon as it is captured, 286 * but delay it for 300 milliseconds after the formal capture. 287 * We do it mainly to have the common behavior under all 288 * hosts and X11 is forced to behave that way. */ 289 290 /* Delay finalising capture for 300 milliseconds: */ 291 QTimer::singleShot(300, this, SLOT(sltFinaliseCaptureKeyboard())); 284 292 285 293 #elif defined(VBOX_WS_X11) … … 352 360 m_iKeyboardCaptureViewIndex = uScreenId; 353 361 354 #if !defined(VBOX_WS_X11) || QT_VERSION < 0x050000362 #if defined(VBOX_WS_MAC) || QT_VERSION < 0x050000 355 363 /* Finalise keyboard capture: */ 356 364 finaliseCaptureKeyboard(); … … 1509 1517 } 1510 1518 1511 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x0500001519 #if !defined(VBOX_WS_MAC) && QT_VERSION >= 0x050000 1512 1520 void UIKeyboardHandler::sltFinaliseCaptureKeyboard() 1513 1521 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.h
r63599 r63608 133 133 virtual void sltMachineStateChanged(); 134 134 135 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000135 #if !defined(VBOX_WS_MAC) && QT_VERSION >= 0x050000 136 136 /** Finalises keyboard capture. */ 137 137 void sltFinaliseCaptureKeyboard();
Note:
See TracChangeset
for help on using the changeset viewer.