summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2016-09-13 14:07:51 +0200
committerRui Matos <tiagomatos@gmail.com>2016-09-13 18:44:09 +0200
commit41b05f08278f57098463b9dcdb10cea59736c03f (patch)
treef1f958888382a23bb7e7c5c5b1541a875d5c47e3
parent4bb8175e600e8c7275c8fd5614afd811b4867ccc (diff)
downloadlibgnomekbd-41b05f08278f57098463b9dcdb10cea59736c03f.tar.gz
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.
-rw-r--r--libgnomekbd/gkbd-keyboard-drawing.c2
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