From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeM0c-0005va-GI for qemu-devel@nongnu.org; Wed, 15 Oct 2014 06:40:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeM0X-0000nL-DN for qemu-devel@nongnu.org; Wed, 15 Oct 2014 06:40:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeM0W-0000mm-Vx for qemu-devel@nongnu.org; Wed, 15 Oct 2014 06:40:41 -0400 From: Gerd Hoffmann Date: Wed, 15 Oct 2014 12:40:15 +0200 Message-Id: <1413369615-18600-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1413369615-18600-1-git-send-email-kraxel@redhat.com> References: <1413369615-18600-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 2/2] 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: Martin Decky , Anthony Liguori , Gerd Hoffmann From: Martin Decky Special handing of the Pause key. Implemented in a similar way as in ui/sdl.c. Signed-off-by: Martin Decky Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/gtk.c b/ui/gtk.c index cdd2567..8e055da 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); -- 1.8.3.1