From c392a1aa234b304b634c4ace6375ad96397a30b9 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Mon, 20 Jun 2005 18:01:34 +0000 Subject: Now simply push enter when the exit dialog is shown to quit. --- src/game.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 10ec4868..ce269bfa 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -268,8 +268,16 @@ void do_input() // Input chat window else if ((keysym.sym == SDLK_RETURN) && !chatWindow->isFocused()) { - chatWindow->requestChatFocus(); - used = true; + // Quit by pressing Enter if the exit confirm is there + if ( exitConfirm ) + { + state = EXIT; + } + else // Else, open the chat edit box + { + chatWindow->requestChatFocus(); + used = true; + } } // Emotions and some internal gui windows -- cgit v1.2.3-70-g09d2