From e06dd2cfe42c5afa658853b330ab68b55d9ee07f Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Wed, 14 Apr 2004 19:34:06 +0000 Subject: [PATCH] A workaround for missing real support for keyboard layout APIs. --- dlls/x11drv/keyboard.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dlls/x11drv/keyboard.c b/dlls/x11drv/keyboard.c index 1574f08a089..37541f9ac36 100644 --- a/dlls/x11drv/keyboard.c +++ b/dlls/x11drv/keyboard.c @@ -1554,7 +1554,18 @@ HKL X11DRV_GetKeyboardLayout(DWORD dwThreadid) if (dwThreadid) FIXME("couldn't return keyboard layout for thread %04lx\n", dwThreadid); +#if 0 layout = main_key_tab[kbd_layout].lcid; +#else + /* FIXME: + * Winword uses return value of GetKeyboardLayout as a codepage + * to translate ANSI keyboard messages to unicode. But we have + * a problem with it: for instance Polish keyboard layout is + * identical to the US one, and therefore instead of the Polish + * locale id we return the US one. + */ + layout = GetUserDefaultLCID(); +#endif /* * Microsoft Office expects this value to be something specific * for Japanese and Korean Windows with an IME the value is 0xe001