VirtualBox

Changeset 14548 in vbox for trunk/src


Ignore:
Timestamp:
Nov 24, 2008 9:34:58 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: 3266: "Wrong host-key displayed" : Pause (VK_PAUSE) key case fixed.

File:
1 edited

Legend:

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

    r13599 r14548  
    373373    {
    374374#if defined (Q_WS_WIN32)
    375         /* stupid MapVirtualKey doesn't distinguish between right and left
    376          * vkeys, even under XP, despite that it stated in msdn. do it by
    377          * hand. */
     375        /* Stupid MapVirtualKey doesn't distinguish between right and left
     376         * vkeys, even under XP, despite that it stated in msdn. Do it by
     377         * hands. Besides that it can't recognize such virtual keys as
     378         * VK_DIVIDE & VK_PAUSE, this is also known bug. */
    378379        int scan;
    379380        switch (aKeyVal)
    380381        {
    381382            /* Processing special keys... */
     383            case VK_PAUSE: scan = 0x45 << 16; break;
    382384            case VK_RSHIFT: scan = 0x36 << 16; break;
    383385            case VK_RCONTROL: scan = (0x1D << 16) | (1 << 24); break;
     
    387389            case VK_LWIN:
    388390            case VK_RWIN:
    389             case VK_PAUSE:
    390391            case VK_NUMLOCK: scan = (::MapVirtualKey (aKeyVal, 0) | 256) << 16; break;
    391392            default: scan = ::MapVirtualKey (aKeyVal, 0) << 16;
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