VirtualBox

Changeset 35821 in vbox


Ignore:
Timestamp:
Feb 2, 2011 12:55:40 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: move the check back to the correct place

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHotKeyEditor.cpp

    r35800 r35821  
    182182
    183183#ifdef Q_WS_MAC
    184     if (!iKeyCode || iKeyCode == ~0U)
    185         return false;
    186 
    187184    UInt32 modMask = ::DarwinKeyCodeToDarwinModifierMask(iKeyCode);
    188185    switch (modMask)
     
    478475
    479476            /* Convert to keycode: */
    480             unsigned iKeyCode = ::DarwinModifierMaskToDarwinKeycode(changed);
     477            unsigned uKeyCode = ::DarwinModifierMaskToDarwinKeycode(changed);
     478
     479            if (!uKeyCode || uKeyCode == ~0U)
     480                return false;
    481481
    482482            /* Process the key event: */
    483             if (processKeyEvent(iKeyCode, changed & modifierMask))
     483            if (processKeyEvent(uKeyCode, changed & modifierMask))
    484484            {
    485485                /* Save the new modifier mask state. */
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