qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Ping [PATCH] gtk: add support for the Pause key


From: Martin Decky
Subject: [Qemu-devel] Ping [PATCH] gtk: add support for the Pause key
Date: Sun, 28 Sep 2014 16:54:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1

http://patchwork.ozlabs.org/patch/390074/

It is a rather simple patch adding support for the Pause key in the GTK
UI. It should not cause any regressions. Please apply.  Thanks.


M.D.

On 16-09-2014 16:04, Martin Decky wrote:
Special handing of the Pause key. Implemented in a similar way as in
ui/sdl.c.

Signed-off-by: Martin Decky <address@hidden>
---
  ui/gtk.c | 6 ++++++
  1 file changed, 6 insertions(+)

diff --git a/ui/gtk.c b/ui/gtk.c
index 2345d7e..e52cab1 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -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);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]