Changeset 11796 in vbox
- Timestamp:
- Aug 29, 2008 9:30:53 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/linux/keyboard-new.c
r11698 r11796 377 377 378 378 for (; (main_keyboard_type_list[i].comment != NULL) && (0 == found); ++i) 379 if ( ( (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].lctrl) 380 && (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].capslock) 381 ) 382 || ( (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].lctrl) 383 && (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].capslock) 379 if ( ( ( (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].lctrl) 380 && (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].capslock) 381 ) 382 || ( (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].lctrl) 383 && (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].capslock) 384 ) 384 385 ) /* Some people like to switch Capslock and left Ctrl */ 385 386 && (XKeysymToKeycode(display, XK_Shift_L) == main_keyboard_type_list[i].lshift) -
trunk/src/VBox/Frontends/VirtualBox4/src/linux/keyboard-new.c
r11698 r11796 377 377 378 378 for (; (main_keyboard_type_list[i].comment != NULL) && (0 == found); ++i) 379 if ( ( (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].lctrl) 380 && (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].capslock) 381 ) 382 || ( (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].lctrl) 383 && (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].capslock) 379 if ( ( ( (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].lctrl) 380 && (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].capslock) 381 ) 382 || ( (XKeysymToKeycode(display, XK_Caps_Lock) == main_keyboard_type_list[i].lctrl) 383 && (XKeysymToKeycode(display, XK_Control_L) == main_keyboard_type_list[i].capslock) 384 ) 384 385 ) /* Some people like to switch Capslock and left Ctrl */ 385 386 && (XKeysymToKeycode(display, XK_Shift_L) == main_keyboard_type_list[i].lshift)
Note:
See TracChangeset
for help on using the changeset viewer.