diff options
Diffstat (limited to 'src/gui/search/SearchView.cpp')
| -rw-r--r-- | src/gui/search/SearchView.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/search/SearchView.cpp b/src/gui/search/SearchView.cpp index 662e756..a8d3d32 100644 --- a/src/gui/search/SearchView.cpp +++ b/src/gui/search/SearchView.cpp @@ -714,7 +714,12 @@ void SearchView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bo { if (key == KEY_ESCAPE) c->Exit(); - if (ctrl) - c->InstantOpen(ctrl); + if (key == KEY_CTRL) + c->InstantOpen(true); } +void SearchView::OnKeyRelease(int key, Uint16 character, bool shift, bool ctrl, bool alt) +{ + if (key == KEY_CTRL) + c->InstantOpen(false); +} |
