From 8d2f8756b0e85f14b5d80ec63dc5e5a7f5f5de3d Mon Sep 17 00:00:00 2001 From: David Athay Date: Wed, 5 Mar 2008 14:37:52 +0000 Subject: Fixed typing in guild dialogs --- src/game.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 72350122..e07a70bd 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -509,7 +509,7 @@ void Game::handleInput() { break; } - + // Don not focus chat input when quit dialog is active if(quitDialog != NULL && quitDialog->isVisible()) break; @@ -524,6 +524,10 @@ void Game::handleInput() { setupWindow->action(gcn::ActionEvent(NULL, "cancel")); } + else if (guildWindow->isVisible()) + { + // TODO: Check if a dialog is open and close it if so + } // Else, open the chat edit box else { @@ -547,7 +551,7 @@ void Game::handleInput() break; } - if (keyboard.isEnabled() && !chatWindow->isFocused()) + if (keyboard.isEnabled() && !chatWindow->isFocused() && !guildWindow->isFocused()) { const int tKey = keyboard.getKeyIndex(event.key.keysym.sym); // Checks if any item shortcut is pressed. -- cgit v1.2.3-70-g09d2