From b9b8f2719b12363404eb4247ce703c3b2195556f Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sat, 2 Jul 2005 20:39:59 +0000 Subject: Now the browser or the config windows closes when pushing enter. --- src/game.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); -- cgit v1.2.3-70-g09d2