VirtualBox

Changeset 35745 in vbox for trunk/src


Ignore:
Timestamp:
Jan 27, 2011 4:41:28 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69697
Message:

FE/Qt4-OSX: fix detecting of modifier release/pressed events

File:
1 edited

Legend:

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

    r35736 r35745  
    518518
    519519            /* Convert to keycode: */
    520             int iKeyCode = ::DarwinModifierMaskToDarwinKeycode(changed);
     520            unsigned iKeyCode = ::DarwinModifierMaskToDarwinKeycode(changed);
    521521
    522522            /* Check if symbol is valid else pass it to Qt: */
     
    527527            {
    528528                /* Key release: */
    529                 if (changed & modifierMask)
     529                if (!(changed & modifierMask))
    530530                {
    531531                    /* Remove pressed symbol: */
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