From 517bc35d7f228475c377d2e8a60d60a1de2cd44e Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Fri, 23 Aug 2013 12:49:20 +0200 Subject: [PATCH] Dirty fix for none working in hint mode. We catch all return pressed to simulate the input activate callback, and stop further processing of the key event. But the hinting uses it's own key event callback that was never called if return was pressed. --- src/keybind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keybind.c b/src/keybind.c index 2fea49e..9944faa 100644 --- a/src/keybind.c +++ b/src/keybind.c @@ -268,7 +268,7 @@ static gboolean keypress_cb(GtkWidget *widget, GdkEventKey *event, gpointer is_i vb_set_mode(VB_MODE_NORMAL, true); return true; - } else if (GPOINTER_TO_INT(is_input) && keyval == GDK_Return) { + } else if (GPOINTER_TO_INT(is_input) && keyval == GDK_Return && !(vb.state.mode & VB_MODE_HINTING)) { /* simulate the gtk entries activate callback */ vb_input_activate(); return true; -- 2.20.1