VirtualBox

Changeset 26628 in vbox


Ignore:
Timestamp:
Feb 18, 2010 1:14:57 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: really fix the problem of #57772

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

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

    r26586 r26628  
    23922392        UInt32 keyCode = ~0U;
    23932393        ::GetEventParameter (inEvent, kEventParamKeyCode, typeUInt32, NULL, sizeof (keyCode), NULL, &keyCode);
     2394        /* The usb keyboard driver translates these codes to different virtual
     2395         * key codes depending of the keyboard type. There are ANSI, ISO, JIS
     2396         * and unknown. For European keyboards (ISO) the key 0xa and 0x32 have
     2397         * to be switched. Here we are doing this at runtime, cause the user
     2398         * can have more than one keyboard (of different type), where he may
     2399         * switch at will all the time. Default is the ANSI standard as defined
     2400         * in g_aDarwinToSet1. */
     2401        if (   (keyCode == 0xa || keyCode == 0x32)
     2402            && KBGetLayoutType(LMGetKbdType()) == kKeyboardISO)
     2403            keyCode = 0x3c - keyCode;
    23942404        unsigned scanCode = ::DarwinKeycodeToSet1Scancode (keyCode);
    23952405        if (scanCode)
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/DarwinKeyboard.cpp

    r26585 r26628  
    124124    0x2e,                       /* QZ_c            0x08 */
    125125    0x2f,                       /* QZ_v            0x09 */
    126 //    0x56,                       /* between lshift and z. 'INT 1'? */
    127     0x29,                       /* between lshift and z. 'INT 1'? */
     126    0x56,                       /* between lshift and z. 'INT 1'? */
    128127    0x30,                       /* QZ_b            0x0B */
    129128    0x10,                       /* QZ_q            0x0C */
     
    165164    0x0f,                       /* QZ_TAB          0x30 */
    166165    0x39,                       /* QZ_SPACE        0x31 */
    167 //    0x29,                       /* QZ_BACKQUOTE    0x32 */
    168     0x56,                       /* QZ_BACKQUOTE    0x32 */
     166    0x29,                       /* QZ_BACKQUOTE    0x32 */
    169167    0x0e,                       /* QZ_BACKSPACE    0x33 */
    170168    0x9c,                       /* QZ_IBOOK_ENTER  0x34 */
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