Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/input.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/input.cc b/src/client/input.cc
index fa23c1a..d8639cc 100644
--- a/src/client/input.cc
+++ b/src/client/input.cc
@@ -231,7 +231,9 @@ void frame(float seconds)
keyreleased(event.key.keysym);
break;
case SDL_KEYDOWN:
- if (event.key.keysym.sym == '`' || event.key.keysym.sym == '~') {
+ if (chat::visible() && !console::visible() && (event.key.keysym.sym == SDLK_ESCAPE)) {
+ chat::toggle();
+ } else if (event.key.keysym.sym == '`' || event.key.keysym.sym == '~' || (event.key.keysym.sym == SDLK_ESCAPE)) {
//last_control = 0;
console::toggle();