Disable remaining piece of the code which auto assigns virtual key codes
Dmitry Timoshkov
dmitry at baikal.ru
Thu Oct 7 23:40:35 CDT 2004
Hello,
remaining piece of the code which auto assigns virtual key codes to
"allowed ranges" breaks finnish/swedish keyboard inputs by overwriting
VK_OEM_102 to key code mapping. Perhaps instead of just commenting out
we have to remove that code completely, but just having a comment above
it will prevent someone from adding that code again.
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Disable remaining piece of the code which auto assigns virtual key
codes, it breaks VK_OEM_102 in finnish/swedish keyboard layouts.
--- cvs/hq/wine/dlls/x11drv/keyboard.c 2004-10-06 16:10:24.000000000 +0900
+++ wine/dlls/x11drv/keyboard.c 2004-10-08 13:19:05.000000000 +0900
@@ -1462,7 +1462,7 @@ void X11DRV_InitKeyboard( BYTE *key_stat
case '+': vkey = VK_OEM_PLUS; break;
}
}
-#endif
+
if (!vkey)
{
/* Others keys: let's assign OEM virtual key codes in the allowed range,
@@ -1494,6 +1494,7 @@ void X11DRV_InitKeyboard( BYTE *key_stat
TRACE(")\n");
}
}
+#endif
}
TRACE("keycode %04x => vkey %04x\n", e2.keycode, vkey);
keyc2vkey[e2.keycode] = vkey;
More information about the wine-patches
mailing list