VirtualBox

Ignore:
Timestamp:
Mar 5, 2014 9:03:03 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92641
Message:

HID LEDs sync for Mac: re-sync keyboard if feature is disabled (i.e., return old behavior).

File:
1 edited

Legend:

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

    r50683 r50693  
    12131213    if ((fFlags & KeyPressed) || (m_pressedKeys[uScan] & uWhatPressed))
    12141214    {
    1215         /* Check if the guest has the same view on the modifier keys
    1216          * (NumLock, CapsLock, ScrollLock) as the X server. */
    1217 #if !defined(Q_WS_MAC)
    1218         /* If there is no HID LEDs sync enabled or supported
    1219          * we should re-sync keyboard LEDs and state following this way. */
     1215        /* If HID LEDs sync is disabled or not supported, check if the guest has the
     1216         * same view on the modifier keys (NumLock, CapsLock, ScrollLock) as the host. */
    12201217        if (!machineLogic()->isHidLedsSyncEnabled())
    12211218            if (fFlags & KeyPressed)
    12221219                fixModifierState(pCodes, puCodesCount);
    1223 #endif
    12241220
    12251221        /* Prepend 'extended' scancode if needed: */
Note: See TracChangeset for help on using the changeset viewer.

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