VirtualBox

Changeset 32896 in vbox for trunk/src/VBox/Frontends/Common


Ignore:
Timestamp:
Oct 5, 2010 9:29:41 AM (14 years ago)
Author:
vboxsync
Message:

FE/Common: use XKB mappings or well known mappings for all keys, not just layout dependent ones (and complete the fix for public #2595 and #2302)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/Common/VBoxKeyboard/keyboard.c

    r32874 r32896  
    107107    KeySym keysym = XKeycodeToKeysym(display, code, 0);
    108108    scan = 0;
    109     if (keysym != 0)  /* otherwise, keycode not used */
     109    if (keyc2scan[code] == 0 && keysym != 0)
    110110    {
    111111        if ((keysym >> 8) == 0xFF)          /* non-character key */
     
    120120            scan = 0x138;
    121121    }
    122     /* Disabled "keysym != 0" as we can now match keycodes with no keysym */
    123     if (/* keysym != 0 && */ scan == 0)
     122    if (keyc2scan[code])
    124123        scan = keyc2scan[code];
    125124
     
    634633            keyc2scan[(*remapScancodes)[0]] = (*remapScancodes)[1];
    635634
    636     return (byLayout || byType) ? 1 : 0;
     635    return (byLayout || byType || byXkb) ? 1 : 0;
    637636}
    638637
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