ui/gtk: use native keyboard scancodes on Windows
commit145419274621f846385d35e609c051d4cbdd39a7
authorVolker Rümelin <vr_qemu@t-online.de>
Sat, 16 May 2020 07:20:13 +0000 (16 09:20 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 19 May 2020 07:06:44 +0000 (19 09:06 +0200)
tree00a52a4325cff23cbe7337c3800b752db942fa23
parentd3953bf7978521b6373cb8101f594cc44b0efa9e
ui/gtk: use native keyboard scancodes on Windows

Since GTK 3.22 the function gdk_event_get_scancode() is
available. On Windows this function returns keyboard scancodes
and some extended flags. These raw keyboard scancodes are much
better suited for this use case than the half-cooked win32
virtual-key codes because scancodes report the key position on
the keyboard and the positions are independent of national
language settings.

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-id: 20200516072014.7766-10-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk.c