VirtualBox

Ignore:
Timestamp:
May 1, 2013 9:07:12 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: more AltGr experiments, temporarily reverse the order of events to make sure a test fails when it should.

File:
1 edited

Legend:

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

    r45866 r45867  
    399399{
    400400    MSG peekMsg;
    401     BYTE auKeyStates[256] =
     401    const BYTE auKeyStates[256] =
    402402    { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x80, 0x80 };
    403403    WORD ach;
     
    407407        return false;
    408408    LogRel(("Got an LCtrl event.\n"));
     409    for (i = '0'; i <= '9'; ++i)
     410        if (ToAscii(i, 0, auKeyStates, &ach, 0))
     411            break;
     412    if (i > '9')
     413        return false;
     414    LogRel(("One of the number keys has an AltGr state.\n"));
    409415    if (!PeekMessage(&peekMsg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_NOREMOVE))
    410416        return false;
     
    422428        return false;
    423429    LogRel(("The next keyboard event is RAlt.\n"));
    424     for (i = '0'; i <= '9'; ++i)
    425         if (ToAscii(i, 0, auKeyStates, &ach, 0))
    426             break;
    427     if (i > '9')
    428         return false;
    429     LogRel(("One of the number keys has an AltGr state.\n"));
    430430    return true;
    431431}
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