summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-07-02 20:39:59 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-07-02 20:39:59 +0000
commitb9b8f2719b12363404eb4247ce703c3b2195556f (patch)
tree492301a432c47db25535e64065400f9f02b68590
parent5761ac98502d90b41d90759283caad4a2dc0b093 (diff)
downloadmana-client-b9b8f2719b12363404eb4247ce703c3b2195556f.tar.gz
mana-client-b9b8f2719b12363404eb4247ce703c3b2195556f.tar.bz2
mana-client-b9b8f2719b12363404eb4247ce703c3b2195556f.tar.xz
mana-client-b9b8f2719b12363404eb4247ce703c3b2195556f.zip
Now the browser or the config windows closes when pushing enter.
-rw-r--r--src/game.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index e834410f..a6a9d866 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -273,6 +273,14 @@ void do_input()
{
state = EXIT;
}
+ else if ( helpWindow->isVisible() ) // Close the Browser if opened
+ {
+ helpWindow->setVisible(false);
+ }
+ else if ( setupWindow->isVisible() ) // Close the config window, applying changes if opened
+ {
+ setupWindow->action("apply");
+ }
else // Else, open the chat edit box
{
chatWindow->requestChatFocus();