VirtualBox

Changeset 98501 in vbox for trunk


Ignore:
Timestamp:
Feb 8, 2023 1:09:44 PM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Build fix for r155768.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp

    r98500 r98501  
    17231723        {
    17241724            /* We have to make guest to release pressed keys from the host-combination: */
    1725             foreach (const uint8_t &uScan, m_pressedHostComboKeys.values())
    1726             {
    1727                 if (m_pressedKeys[uScan] & IsKeyPressed)
     1725            foreach (const uint8_t &uCurrentScan, m_pressedHostComboKeys.values())
     1726            {
     1727                if (m_pressedKeys[uCurrentScan] & IsKeyPressed)
    17281728                {
    1729                     uimachine()->putScancode(uScan | 0x80);
     1729                    uimachine()->putScancode(uCurrentScan | 0x80);
    17301730                }
    1731                 else if (m_pressedKeys[uScan] & IsExtKeyPressed)
     1731                else if (m_pressedKeys[uCurrentScan] & IsExtKeyPressed)
    17321732                {
    17331733                    QVector<LONG> scancodes(2);
    17341734                    scancodes[0] = 0xE0;
    1735                     scancodes[1] = uScan | 0x80;
     1735                    scancodes[1] = uCurrentScan | 0x80;
    17361736                    uimachine()->putScancodes(scancodes);
    17371737                }
    1738                 m_pressedKeys[uScan] = 0;
     1738                m_pressedKeys[uCurrentScan] = 0;
    17391739            }
    17401740        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette