Skip to content

Commit 0ff68a9

Browse files
committed
hide listbox when 'key' is shortcut key combination
1 parent 21cd196 commit 0ff68a9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Edit/Interface/edit_complete.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,10 @@ edit_interface_rep::complete_keypress (string key) {
191191
}
192192
else if ((key != "tab") && (key != "S-tab") && (key != "up") &&
193193
(key != "down")) {
194-
// set_input_normal ();
195-
// SERVER (set_completion_listbox_visible (false));
194+
if ((key != "backspace" && try_shortcut(key))) {
195+
set_input_normal ();
196+
SERVER (set_completion_listbox_visible (false));
197+
}
196198
return false;
197199
}
198200
tree st= subtree (et, path_up (tp));

0 commit comments

Comments
 (0)