- Timestamp:
- Aug 30, 2018 12:03:58 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r73924 r73976 1172 1172 case QEvent::FocusOut: 1173 1173 { 1174 /* If host key combo press has been inserted (with no release yet) insert a release now: */ 1175 if (m_fHostKeyComboPressInserted) 1176 machineLogic()->typeHostKeyComboPressRelease(false); 1177 1174 1178 #if defined(VBOX_WS_MAC) 1175 1179 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r73926 r73976 2613 2613 } 2614 2614 2615 void UIMachineLogic::typeHostKeyComboPressRelease(bool fToggleSequence) 2616 { 2617 QAction *pHostKeyAction = actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_T_TypeHostKeyCombo); 2618 if (!pHostKeyAction) 2619 return; 2620 /* Do nothing if we try to insert host key combo press (release) and it is already in pressed (released) state: */ 2621 if (fToggleSequence == pHostKeyAction->isChecked()) 2622 return; 2623 pHostKeyAction->toggle(); 2624 } 2625 2615 2626 void UIMachineLogic::updateMenuDevicesStorage(QMenu *pMenu) 2616 2627 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r73847 r73976 158 158 /** Returns whether VM should perform HID LEDs synchronization. */ 159 159 bool isHidLedsSyncEnabled() const { return m_fIsHidLedsSyncEnabled; } 160 /** An public interface to sltTypeHostKeyComboPressRelease. */ 161 void typeHostKeyComboPressRelease(bool fToggleSequence); 160 162 161 163 protected slots:
Note:
See TracChangeset
for help on using the changeset viewer.