Changeset 26628 in vbox
- Timestamp:
- Feb 18, 2010 1:14:57 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r26586 r26628 2392 2392 UInt32 keyCode = ~0U; 2393 2393 ::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; 2394 2404 unsigned scanCode = ::DarwinKeycodeToSet1Scancode (keyCode); 2395 2405 if (scanCode) -
trunk/src/VBox/Frontends/VirtualBox/src/darwin/DarwinKeyboard.cpp
r26585 r26628 124 124 0x2e, /* QZ_c 0x08 */ 125 125 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'? */ 128 127 0x30, /* QZ_b 0x0B */ 129 128 0x10, /* QZ_q 0x0C */ … … 165 164 0x0f, /* QZ_TAB 0x30 */ 166 165 0x39, /* QZ_SPACE 0x31 */ 167 // 0x29, /* QZ_BACKQUOTE 0x32 */ 168 0x56, /* QZ_BACKQUOTE 0x32 */ 166 0x29, /* QZ_BACKQUOTE 0x32 */ 169 167 0x0e, /* QZ_BACKSPACE 0x33 */ 170 168 0x9c, /* QZ_IBOOK_ENTER 0x34 */
Note:
See TracChangeset
for help on using the changeset viewer.