VirtualBox

Ignore:
Timestamp:
Jan 27, 2011 4:31:07 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: fix todo for host key combos

File:
1 edited

Legend:

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

    r35740 r35744  
    311311
    312312#ifdef Q_WS_MAC
    313     // TODO: To NaN: Please fix:
    314 //    /* Clear most of the modifiers: */
    315 //    m_darwinKeyModifiers &=
    316 //        alphaLock | kEventKeyModifierNumLockMask |
    317 //        (aReleaseHostKey ? 0 : ::DarwinKeyCodeToDarwinModifierMask(m_globalSettings.hostKey()));
     313    unsigned int hostComboModifierMask = 0;
     314    QList<int> hostCombo = UIHotKeyCombination::toKeyCodeList(m_globalSettings.hostCombo());
     315    for (int i = 0; i < hostCombo.size(); ++i)
     316        hostComboModifierMask |= ::DarwinKeyCodeToDarwinModifierMask(hostCombo.at(i));
     317    /* Clear most of the modifiers: */
     318    m_darwinKeyModifiers &=
     319        alphaLock | kEventKeyModifierNumLockMask |
     320        (aReleaseHostKey ? 0 : hostComboModifierMask);
    318321#endif
    319322
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