forked from AuroraMiddleware/gtk
gdkkeys-win32.c: fix initialisation of key_state in update_keymap
It apparently worked by chance in the past, but now causes e.g. alphanumeric characters to be interpreted as half-width katakana when using the Japanese IME.
This commit is contained in:
parent
6818eee859
commit
2784b03b2d
@ -694,6 +694,7 @@ update_keymap (GdkKeymap *gdk_keymap)
|
||||
if (hkls_len != keymap->layout_handles->len)
|
||||
keymap->keysym_tab = g_renew (guint, keymap->keysym_tab, keysym_tab_size);
|
||||
|
||||
memset (key_state, 0, sizeof(key_state));
|
||||
memset (keymap->keysym_tab, 0, keysym_tab_size);
|
||||
g_array_set_size (keymap->layout_handles, hkls_len);
|
||||
g_array_set_size (keymap->options, hkls_len);
|
||||
|
Loading…
Reference in New Issue
Block a user