From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTtNO-0001pb-Qf for qemu-devel@nongnu.org; Tue, 16 Sep 2014 10:05:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTtNI-0000iW-IY for qemu-devel@nongnu.org; Tue, 16 Sep 2014 10:05:02 -0400 Received: from kronos.decky.cz ([81.31.35.109]:54753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTtNI-0000eM-BT for qemu-devel@nongnu.org; Tue, 16 Sep 2014 10:04:56 -0400 Message-ID: <54184378.6040100@decky.cz> Date: Tue, 16 Sep 2014 16:04:40 +0200 From: Martin Decky MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [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 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); -- 1.8.3.1