VirtualBox

Changeset 52131 in vbox


Ignore:
Timestamp:
Jul 22, 2014 3:53:52 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: on Windows hosts do use the low-level keyboard hook to detect AltGr when the keyboard is captured.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp

    r52014 r52131  
    10541054    if (!m_fIsKeyboardCaptured)
    10551055        return false;
     1056
     1057    /* For normal user applications, Windows defines AltGr to be the same as
     1058     * LControl + RAlt.  Without a low-level hook it is hard to recognise the
     1059     * additional LControl event inserted, but in a hook we recognise it by
     1060     * its special 0x21D scan code. */
     1061    if (   m_views[m_iKeyboardHookViewIndex]->hasFocus()
     1062        && ((event.scanCode & ~0x80) == 0x21D))
     1063        return true;
    10561064
    10571065    MSG message;
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