Commit 8e6932f4 authored by Tor Lillqvist's avatar Tor Lillqvist

Handle emulated keyboard input that arrives as VK_PACKET

Fixes bug #642772. Thanks to the anonymous bug reporter for providing
a test program.
parent 50233edb
......@@ -1958,12 +1958,16 @@ gdk_event_translate (MSG *msg,
build_key_event_state (event, key_state);
gdk_keymap_translate_keyboard_state (_gdk_win32_display_get_keymap (_gdk_display),
event->key.hardware_keycode,
event->key.state,
event->key.group,
&event->key.keyval,
NULL, NULL, NULL);
if (msg->wParam == VK_PACKET &&
ToUnicode (VK_PACKET, HIWORD (msg->lParam), key_state, wbuf, 1, 0) == 1)
event->key.keyval = gdk_unicode_to_keyval (wbuf[0]);
else
gdk_keymap_translate_keyboard_state (_gdk_win32_display_get_keymap (_gdk_display),
event->key.hardware_keycode,
event->key.state,
event->key.group,
&event->key.keyval,
NULL, NULL, NULL);
fill_key_event_string (event);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment