- Timestamp:
- Feb 8, 2023 1:09:44 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r98500 r98501 1723 1723 { 1724 1724 /* We have to make guest to release pressed keys from the host-combination: */ 1725 foreach (const uint8_t &u Scan, m_pressedHostComboKeys.values())1726 { 1727 if (m_pressedKeys[u Scan] & IsKeyPressed)1725 foreach (const uint8_t &uCurrentScan, m_pressedHostComboKeys.values()) 1726 { 1727 if (m_pressedKeys[uCurrentScan] & IsKeyPressed) 1728 1728 { 1729 uimachine()->putScancode(u Scan | 0x80);1729 uimachine()->putScancode(uCurrentScan | 0x80); 1730 1730 } 1731 else if (m_pressedKeys[u Scan] & IsExtKeyPressed)1731 else if (m_pressedKeys[uCurrentScan] & IsExtKeyPressed) 1732 1732 { 1733 1733 QVector<LONG> scancodes(2); 1734 1734 scancodes[0] = 0xE0; 1735 scancodes[1] = u Scan | 0x80;1735 scancodes[1] = uCurrentScan | 0x80; 1736 1736 uimachine()->putScancodes(scancodes); 1737 1737 } 1738 m_pressedKeys[u Scan] = 0;1738 m_pressedKeys[uCurrentScan] = 0; 1739 1739 } 1740 1740 }
Note:
See TracChangeset
for help on using the changeset viewer.