summaryrefslogtreecommitdiff
path: root/src/gui/search/SearchView.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-07-25 23:43:25 (GMT)
committer jacob1 <jfu614@gmail.com>2013-07-25 23:43:25 (GMT)
commitbfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8 (patch)
tree644bbe8435b3f31c738325cf55419860dd9fa6f4 /src/gui/search/SearchView.cpp
parentbeff3db8d291b00b47fc13a1b936fa4419e3d78d (diff)
downloadpowder-bfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8.zip
powder-bfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8.tar.gz
instant save option option, hold ctrl when clicking a save in the save preview to skip the entire preview and not load the comments
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);
}