VirtualBox

Ignore:
Timestamp:
Jul 16, 2014 1:02:24 PM (10 years ago)
Author:
vboxsync
Message:

FE/Common/VBoxKeyboard: use XKB on X11 hosts to match all keys on the keyboard, not just the layout-dependent ones, to fix Brazillian Thinkpad keyboards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/Common/VBoxKeyboard/xkbtoscan.h

    r44325 r52048  
    3838/**
    3939 * This table contains a list of mappings of XKB key names to XT scan codes.
    40  * We only use XKB to look up layout-dependent keys (mainly the alpha-numeric
    41  * ones), so that user re-mappings will work at least for the remaining keys.
    42  * This is the reason for the commented out entries in the table.
    4340 */
    4441struct
     
    4845} xkbMap[] =
    4946{
    50 /*    { "ESC", 0x1 }, */
     47    { "ESC", 0x1 },
    5148    { "AE01", 0x2 },
    5249    { "AE02", 0x3 },
     
    6158    { "AE11", 0xc },
    6259    { "AE12", 0xd },
    63 /*    { "BKSP", 0xe },
    64     { "TAB", 0xf }, */
     60    { "BKSP", 0xe },
     61    { "TAB", 0xf },
    6562    { "AD01", 0x10 },
    6663    { "AD02", 0x11 },
     
    7572    { "AD11", 0x1a },
    7673    { "AD12", 0x1b },
    77 /*    { "RTRN", 0x1c },
    78     { "LCTL", 0x1d }, */
     74    { "RTRN", 0x1c },
     75    { "LCTL", 0x1d },
    7976    { "AC01", 0x1e },
    8077    { "AC02", 0x1f },
     
    9087    { "AC12", 0x2b },
    9188    { "TLDE", 0x29 },
    92 /*    { "LFSH", 0x2a }, */
     89    { "LFSH", 0x2a },
    9390    { "BKSL", 0x2b },
    9491    { "AB01", 0x2c },
     
    10299    { "AB09", 0x34 },
    103100    { "AB10", 0x35 },
    104 /*    { "RTSH", 0x36 },
     101    { "RTSH", 0x36 },
    105102    { "KPMU", 0x37 },
    106103    { "LALT", 0x38 },
     
    133130    { "KPDL", 0x53 },
    134131    { "KPPT", 0x7e },
    135     { "LVL3", 0x138 }, */
     132    { "LVL3", 0x138 },
    136133    { "LSGT", 0x56 },
    137 /*    { "FK11", 0x57 },
    138     { "FK12", 0x58 }, */
     134    { "FK11", 0x57 },
     135    { "FK12", 0x58 },
    139136    { "AB11", 0x73 },
    140 /*    { "KATA", 0x0 },
     137    { "KATA", 0x0 },
    141138    { "HIRA", 0x0 },
    142139    { "HENK", 0x79 },
     
    174171    { "KPPT", 0x7e },
    175172    { "HNGL", 0xf2 },
    176     { "HJCV", 0xf1 }, */
     173    { "HJCV", 0xf1 },
    177174    { "AE13", 0x7d },
    178 /*    { "LWIN", 0x15b },
     175    { "LWIN", 0x15b },
    179176    { "LMTA", 0x15b },
    180177    { "RWIN", 0x15c },
     
    299296    { "I251", 0x0 },
    300297    { "I252", 0x0 },
    301     { "I253", 0x0 } */
     298    { "I253", 0x0 }
    302299};
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