From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYGCX-0004ug-1R for qemu-devel@nongnu.org; Sun, 28 Sep 2014 11:15:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYGCQ-00034c-Va for qemu-devel@nongnu.org; Sun, 28 Sep 2014 11:15:52 -0400 Received: from kronos.decky.cz ([81.31.35.109]:58894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYGCQ-00033B-Oq for qemu-devel@nongnu.org; Sun, 28 Sep 2014 11:15:46 -0400 Message-ID: <5428213F.6030004@decky.cz> Date: Sun, 28 Sep 2014 16:54:55 +0200 From: Martin Decky MIME-Version: 1.0 References: <54184378.6040100@decky.cz> In-Reply-To: <54184378.6040100@decky.cz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Ping [PATCH] gtk: add support for the Pause key List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Anthony Liguori 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 > --- > 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); >