Changeset 32896 in vbox for trunk/src/VBox/Frontends/Common
- Timestamp:
- Oct 5, 2010 9:29:41 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/Common/VBoxKeyboard/keyboard.c
r32874 r32896 107 107 KeySym keysym = XKeycodeToKeysym(display, code, 0); 108 108 scan = 0; 109 if (key sym != 0) /* otherwise, keycode not used */109 if (keyc2scan[code] == 0 && keysym != 0) 110 110 { 111 111 if ((keysym >> 8) == 0xFF) /* non-character key */ … … 120 120 scan = 0x138; 121 121 } 122 /* Disabled "keysym != 0" as we can now match keycodes with no keysym */ 123 if (/* keysym != 0 && */ scan == 0) 122 if (keyc2scan[code]) 124 123 scan = keyc2scan[code]; 125 124 … … 634 633 keyc2scan[(*remapScancodes)[0]] = (*remapScancodes)[1]; 635 634 636 return (byLayout || byType ) ? 1 : 0;635 return (byLayout || byType || byXkb) ? 1 : 0; 637 636 } 638 637
Note:
See TracChangeset
for help on using the changeset viewer.