diff options
author | Jeremy Tan <jtanx@outlook.com> | 2021-07-09 12:35:44 +0800 |
---|---|---|
committer | Jeremy Tan <jtanx@outlook.com> | 2021-07-09 12:35:44 +0800 |
commit | 73038543106f8af8f41132f4a245056a94322c92 (patch) | |
tree | 6df7e866b10e5738d8b4f46d4533bcfc5384ca92 | |
parent | d4e2d05cd9518ba04d6fbe1cbcec27142788ac95 (diff) | |
download | gtk+-73038543106f8af8f41132f4a245056a94322c92.tar.gz |
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.
-rw-r--r-- | gdk/win32/gdkkeys-win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/win32/gdkkeys-win32.c b/gdk/win32/gdkkeys-win32.c index b4753e1f79..4ef8c4b102 100644 --- a/gdk/win32/gdkkeys-win32.c +++ b/gdk/win32/gdkkeys-win32.c @@ -692,6 +692,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); |