- Timestamp:
- Dec 7, 2023 11:42:19 AM (14 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r102508 r102518 208 208 #endif 209 209 , m_fRestoreCurrentSnapshot(false) 210 , m_fNoKeyboardGrabbing(false) 210 211 , m_fExecuteAllInIem(false) 211 212 , m_uWarpPct(100) … … 500 501 enmOptType = OptType_VMRunner; 501 502 m_fRestoreCurrentSnapshot = true; 503 } 504 else if (!::strcmp(arg, "--no-keyboard-grabbing")) 505 { 506 enmOptType = OptType_VMRunner; 507 m_fNoKeyboardGrabbing = true; 502 508 } 503 509 /* Ad hoc VM reconfig options: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h
r102503 r102518 265 265 void setShouldRestoreCurrentSnapshot(bool fRestore) { m_fRestoreCurrentSnapshot = fRestore; } 266 266 267 /** Returns the --no-keyboard-grabbing option value (whether we should restore 268 * grab the keyboard or not - for debugging). */ 269 bool shouldNotGrabKeyboard() const { return m_fNoKeyboardGrabbing; } 270 267 271 /** Returns the --fda option value (whether we have floppy image). */ 268 272 bool hasFloppyImageToMount() const { return !m_uFloppyImage.isNull(); } … … 694 698 bool m_fRestoreCurrentSnapshot; 695 699 700 /** Holds the --no-keyboard-grabbing option value. */ 701 bool m_fNoKeyboardGrabbing; 702 696 703 /** Holds the --fda option value (floppy image). */ 697 704 QUuid m_uFloppyImage; -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r101571 r102518 294 294 " --driverless Do not open the support driver (NEM or IEM mode).\n" 295 295 " --warp-pct <pct> time warp factor, 100%% (= 1.0) = normal speed\n" 296 " --no-keyboard-grabbing Don't grab the keyboard on windows (for debugging).\n" 296 297 "\n" 297 298 # ifdef VBOX_WITH_DEBUGGER_GUI -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r100064 r102518 1144 1144 1145 1145 /* If keyboard-hook is NOT installed; 1146 * Or installed but NOT for that view: */ 1147 if (!m_keyboardHook || (int)uScreenId != m_iKeyboardHookViewIndex) 1146 * Or installed but NOT for that view 1147 * AND no --no-keyboard-grabbing option: */ 1148 if ( (!m_keyboardHook || (int)uScreenId != m_iKeyboardHookViewIndex) 1149 && !uiCommon().shouldNotGrabKeyboard()) 1148 1150 { 1149 1151 /* If keyboard-hook is installed: */
Note:
See TracChangeset
for help on using the changeset viewer.