diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-28 07:55:54 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-28 07:55:54 -0600 |
commit | ef2e1bafa7c5f19b0353e0bf01a7ad9d7f8cddf5 (patch) | |
tree | be4372c79a990a4864fcc2567463199794221410 /src/game.cpp | |
parent | 91da5b104a0895578a0a2a7debbfb495e50ef4f4 (diff) | |
download | mana-ef2e1bafa7c5f19b0353e0bf01a7ad9d7f8cddf5.tar.gz mana-ef2e1bafa7c5f19b0353e0bf01a7ad9d7f8cddf5.tar.bz2 mana-ef2e1bafa7c5f19b0353e0bf01a7ad9d7f8cddf5.tar.xz mana-ef2e1bafa7c5f19b0353e0bf01a7ad9d7f8cddf5.zip |
Allow changing chat tabs with the keyboard
Defaults to:
[ for previous tab
] for next tab
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index ba756df3..2dc62b05 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -722,6 +722,17 @@ void Game::handleInput() used = true; } + if (keyboard.isKeyActive(keyboard.KEY_PREV_CHAT_TAB)) + { + chatWindow->prevTab(); + return; + } + else if (keyboard.isKeyActive(keyboard.KEY_NEXT_CHAT_TAB)) + { + chatWindow->nextTab(); + return; + } + const int tKey = keyboard.getKeyIndex(event.key.keysym.sym); switch (tKey) { |