Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-09-27 20:03:50 +0000
committerStijn Buys <ingar@osirion.org>2010-09-27 20:03:50 +0000
commit178f0e4a83918df416ac8274b0e845b390772d76 (patch)
treeee3d4bf0a29cfcd32530e2c38353668a42ce509d /src/client/trademenu.cc
parenta80e501a0a8006034a7dc0cda1fc047f6c37fbd9 (diff)
documentation updates, initial chat window playerlist, trade menu ESC key
Diffstat (limited to 'src/client/trademenu.cc')
-rw-r--r--src/client/trademenu.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/client/trademenu.cc b/src/client/trademenu.cc
index 8aa9a52..c0d1f03 100644
--- a/src/client/trademenu.cc
+++ b/src/client/trademenu.cc
@@ -364,4 +364,19 @@ void TradeMenu::draw()
Window::draw();
}
+bool TradeMenu::on_keypress(const int key, const unsigned int modifier)
+{
+ switch (key) {
+
+ case SDLK_ESCAPE:
+ this->hide();
+ return true;
+ break;
+ default:
+ break;
+ }
+
+ return Window::on_keypress(key, modifier);
+}
+
} // namespace client