diff options
author | Volker Rümelin <vr_qemu@t-online.de> | 2023-04-18 08:28:23 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-05-28 13:08:25 +0400 |
commit | 1dfea3f212e43bfd59d1e1f40b9776db440b211f (patch) | |
tree | 5e2abfab6abf6ac9b5ee2361985bd07c8a61c56b /include/ui/console.h | |
parent | 083db9db44c89d7ea7f81844302194d708bcff2b (diff) | |
download | qemu-1dfea3f212e43bfd59d1e1f40b9776db440b211f.zip qemu-1dfea3f212e43bfd59d1e1f40b9776db440b211f.tar.gz qemu-1dfea3f212e43bfd59d1e1f40b9776db440b211f.tar.bz2 |
ui/sdl2: disable SDL_HINT_GRAB_KEYBOARD on Windows
Windows sends an extra left control key up/down input event for
every right alt key up/down input event for keyboards with
international layout. Since commit 830473455f ("ui/sdl2: fix
handling of AltGr key on Windows") QEMU uses a Windows low level
keyboard hook procedure to reliably filter out the special left
control key and to grab the keyboard on Windows.
The SDL2 version 2.0.16 introduced its own Windows low level
keyboard hook procedure to grab the keyboard. Windows calls this
callback before the QEMU keyboard hook procedure. This disables
the special left control key filter when the keyboard is grabbed.
To fix the problem, disable the SDL2 Windows low level keyboard
hook procedure.
Reported-by: Bernhard Beschow <shentey@gmail.com>
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <20230418062823.5683-1-vr_qemu@t-online.de>
Diffstat (limited to 'include/ui/console.h')
0 files changed, 0 insertions, 0 deletions