mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
ui: ignore hardware keycode 255 on win32
It is a reserved value and doesn't have a corresponding valid scancode. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 20180117164717.15855-5-berrange@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
8026a81aa4
commit
08774f66cb
1 changed files with 6 additions and 0 deletions
6
ui/gtk.c
6
ui/gtk.c
|
@ -1206,6 +1206,12 @@ static gboolean gd_key_event(GtkWidget *widget, GdkEventKey *key, void *opaque)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
/* on windows, we ought to ignore the reserved key event? */
|
||||
if (key->hardware_keycode == 0xff)
|
||||
return false;
|
||||
#endif
|
||||
|
||||
if (key->keyval == GDK_KEY_Pause
|
||||
#ifdef G_OS_WIN32
|
||||
/* for some reason GDK does not fill keyval for VK_PAUSE
|
||||
|
|
Loading…
Reference in a new issue