diff options
author | Martin Decky <martin@decky.cz> | 2014-09-16 16:04:40 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-10-15 11:08:32 +0200 |
commit | 5c960521b8101230bd0d0f5b879e5fd1efdb878b (patch) | |
tree | bb2bcc76b9462418a9e7d276e08b7eba00015f98 /ui/gtk.c | |
parent | 84961407a50bb02d34ab9cca7a21cdb4ff7c25fe (diff) | |
download | qemu-5c960521b8101230bd0d0f5b879e5fd1efdb878b.zip qemu-5c960521b8101230bd0d0f5b879e5fd1efdb878b.tar.gz qemu-5c960521b8101230bd0d0f5b879e5fd1efdb878b.tar.bz2 |
gtk: add support for the Pause key
Special handing of the Pause key. Implemented in a similar way as in
ui/sdl.c.
Signed-off-by: Martin Decky <martin@decky.cz>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/gtk.c')
-rw-r--r-- | ui/gtk.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -931,6 +931,12 @@ static gboolean gd_key_event(GtkWidget *widget, GdkEventKey *key, void *opaque) int qemu_keycode; int i; + if (key->keyval == GDK_KEY_Pause) { + qemu_input_event_send_key_qcode(vc->gfx.dcl.con, Q_KEY_CODE_PAUSE, + key->type == GDK_KEY_PRESS); + return TRUE; + } + qemu_keycode = gd_map_keycode(s, gtk_widget_get_display(widget), gdk_keycode); |