VirtualBox

Ignore:
Timestamp:
Oct 27, 2008 7:49:02 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: Hot Key editor: special processing for few extended keyboard virtual keys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/QIHotKeyEdit.cpp

    r11995 r13599  
    379379        switch (aKeyVal)
    380380        {
     381            /* Processing special keys... */
    381382            case VK_RSHIFT: scan = 0x36 << 16; break;
    382383            case VK_RCONTROL: scan = (0x1D << 16) | (1 << 24); break;
    383384            case VK_RMENU: scan = (0x38 << 16) | (1 << 24); break;
     385            /* Processing extended keys... */
     386            case VK_APPS:
     387            case VK_LWIN:
     388            case VK_RWIN:
     389            case VK_PAUSE:
     390            case VK_NUMLOCK: scan = (::MapVirtualKey (aKeyVal, 0) | 256) << 16; break;
    384391            default: scan = ::MapVirtualKey (aKeyVal, 0) << 16;
    385392        }
    386         TCHAR *str = new TCHAR[256];
     393        TCHAR *str = new TCHAR [256];
    387394        if (::GetKeyNameText (scan, str, 256))
    388395        {
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