Skip to content

Commit 39bff88

Browse files
committed
hide when 'key' is shortcut key combination
1 parent 21cd196 commit 39bff88

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
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 (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));

src/Edit/Interface/edit_keyboard.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ edit_interface_rep::try_shortcut (string comb) {
116116
string help;
117117

118118
sv->get_keycomb (comb, status, cmd, shorth, help);
119-
// cout << "Try " << comb << " -> " << shorth << ", " << help
120-
//<< "; " << sh_mark << ", " << status << "\n";
119+
cout << "Try " << comb << " -> " << shorth << ", " << help
120+
<< "; " << sh_mark << ", " << status << "\n";
121121
if (status != 0) {
122122
if (status >= 3) {
123123
interrupt_shortcut ();

0 commit comments

Comments
 (0)