Dirty fix for none working <cr> in hint mode.
authorDaniel Carl <danielcarl@gmx.de>
Fri, 23 Aug 2013 10:49:20 +0000 (12:49 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Fri, 23 Aug 2013 10:49:20 +0000 (12:49 +0200)
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

index 2fea49e..9944faa 100644 (file)
@@ -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;