summaryrefslogtreecommitdiff
path: root/src/gui/search/SearchView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/search/SearchView.cpp')
-rw-r--r--src/gui/search/SearchView.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/search/SearchView.cpp b/src/gui/search/SearchView.cpp
index cfa1a3b..662e756 100644
--- a/src/gui/search/SearchView.cpp
+++ b/src/gui/search/SearchView.cpp
@@ -712,7 +712,9 @@ void SearchView::OnMouseWheel(int x, int y, int d)
}
void SearchView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt)
{
- if(key==KEY_ESCAPE)
+ if (key == KEY_ESCAPE)
c->Exit();
+ if (ctrl)
+ c->InstantOpen(ctrl);
}