From: Daniel Carl Date: Fri, 23 Aug 2013 10:49:20 +0000 (+0200) Subject: Dirty fix for none working in hint mode. X-Git-Url: https://git.owens.tech/git.owens.tech/git.owens.tech/git?a=commitdiff_plain;h=517bc35d7f228475c377d2e8a60d60a1de2cd44e;p=vimb.git 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. --- 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;