[libgnomekbd/wip/rtcm/cleanups: 1/7] gkbd-keyboard-drawing: Prevent gtk+ keynav from taking focus away
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnomekbd/wip/rtcm/cleanups: 1/7] gkbd-keyboard-drawing: Prevent gtk+ keynav from taking focus away
- Date: Tue, 13 Sep 2016 16:52:24 +0000 (UTC)
commit 41b05f08278f57098463b9dcdb10cea59736c03f
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Sep 13 14:07:51 2016 +0200
gkbd-keyboard-drawing: Prevent gtk+ keynav from taking focus away
We need to tell gtk+ we handled the key event otherwise gtk+ keynav
key events will move focus to the close button and it looks like the
dialog stopped working.
libgnomekbd/gkbd-keyboard-drawing.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c
index 9b8dae3..6894f47 100644
--- a/libgnomekbd/gkbd-keyboard-drawing.c
+++ b/libgnomekbd/gkbd-keyboard-drawing.c
@@ -1574,7 +1574,7 @@ key_event (GtkWidget * widget,
key->pressed = (event->type == GDK_KEY_PRESS);
invalidate_key_region (drawing, key);
- return FALSE;
+ return TRUE;
}
static gint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]