summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-16 00:45:25 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-16 00:45:25 +0300
commit8a068ecd9dd6d41ba49f258107b09b98a8ea1a6d (patch)
treef966d817a42a069fef3958f241ae256c255e6ef1 /src/game.cpp
parentd074efe8597cbc21375c59d7e6ee17296b4c4899 (diff)
downloadmanaverse-8a068ecd9dd6d41ba49f258107b09b98a8ea1a6d.tar.gz
manaverse-8a068ecd9dd6d41ba49f258107b09b98a8ea1a6d.tar.bz2
manaverse-8a068ecd9dd6d41ba49f258107b09b98a8ea1a6d.tar.xz
manaverse-8a068ecd9dd6d41ba49f258107b09b98a8ea1a6d.zip
Add hotkey to close selected chat tab.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 259317545..623d2a069 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -716,6 +716,11 @@ void Game::handleInput()
socialWindow->nextTab();
return;
}
+ else if (keyboard.isKeyActive(keyboard.KEY_CLOSE_CHAT_TAB))
+ {
+ chatWindow->closeTab();
+ return;
+ }
}
const int tKey = keyboard.getKeyIndex(event.key.keysym.sym);