fix input completion bindings for all modes
This commit is contained in:
parent
3f6ca1dedc
commit
5cbfb8113d
22
termite.cc
22
termite.cc
|
@ -602,17 +602,17 @@ gboolean entry_key_press_cb(GtkEntry *entry, GdkEventKey *event, keybind_info *i
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
} else if (info->panel.mode == overlay_mode::completion) {
|
}
|
||||||
if (event->keyval == GDK_KEY_Tab) {
|
|
||||||
synthesize_keypress(GTK_WIDGET(entry), GDK_KEY_Down);
|
if (event->keyval == GDK_KEY_Tab) {
|
||||||
return TRUE;
|
synthesize_keypress(GTK_WIDGET(entry), GDK_KEY_Down);
|
||||||
} else if (event->keyval == GDK_KEY_ISO_Left_Tab) {
|
return TRUE;
|
||||||
synthesize_keypress(GTK_WIDGET(entry), GDK_KEY_Up);
|
} else if (event->keyval == GDK_KEY_ISO_Left_Tab) {
|
||||||
return TRUE;
|
synthesize_keypress(GTK_WIDGET(entry), GDK_KEY_Up);
|
||||||
} else if (event->keyval == GDK_KEY_Down) {
|
return TRUE;
|
||||||
// this stops the down key from leaving the GtkEntry...
|
} else if (event->keyval == GDK_KEY_Down) {
|
||||||
event->hardware_keycode = 0;
|
// this stops the down key from leaving the GtkEntry...
|
||||||
}
|
event->hardware_keycode = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
Loading…
Reference in New Issue