summaryrefslogtreecommitdiff
path: root/src/gui/search/SearchView.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-07-27 15:19:02 (GMT)
committer jacob1 <jfu614@gmail.com>2013-07-27 15:19:02 (GMT)
commit3d16253319f7d461441a71946d3390b35001ddce (patch)
tree0cfe9d0eaa782c4d3fb9f43dc0efc09a8762ee72 /src/gui/search/SearchView.cpp
parent39acce4502bdfad7bb1d59cd3dcbe335e8b690a6 (diff)
downloadpowder-3d16253319f7d461441a71946d3390b35001ddce.zip
powder-3d16253319f7d461441a71946d3390b35001ddce.tar.gz
fix ctrl check in stamp and online browsers
Diffstat (limited to 'src/gui/search/SearchView.cpp')
-rw-r--r--src/gui/search/SearchView.cpp9
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);
+}