VirtualBox

Changeset 24132 in vbox


Ignore:
Timestamp:
Oct 28, 2009 11:22:36 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt: really fix CapsLock on a French keyboard

File:
1 edited

Legend:

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

    r23984 r24132  
    19531953     * to specially treat ALT_GR to enter additional chars to regular apps).
    19541954     * These events are definitely unwanted in VM, so filter them out. */
     1955    /* Note (michael): it also sometimes sends the VK_CAPITAL vkey with scan
     1956     * code 0x23a. If this is not passed through then it is impossible to
     1957     * cancel CapsLock on a French keyboard.  I didn't find any other examples
     1958     * of these strange events.  Let's hope we are not missing anything else
     1959     * of importance! */
    19551960    if (hasFocus() && (event.scanCode & ~0xFF))
    1956         return true;
     1961    {
     1962        if (event.vkCode == VK_CAPITAL)
     1963            return false;
     1964        else
     1965            return true;
     1966    }
    19571967
    19581968    if (!mKbdCaptured)
     
    20942104    /* These special keys have to be handled by Windows as well to update the
    20952105     * internal modifier state and to enable/disable the keyboard LED */
    2096     if (vkey == VK_NUMLOCK || vkey == VK_CAPITAL || vkey == VK_SHIFT)
     2106    if (vkey == VK_NUMLOCK || vkey == VK_CAPITAL || vkey == VK_LSHIFT || vkey == VK_RSHIFT)
    20972107        return false;
    20982108
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