From d181d764bbe3832a7a24e73529810583b6613c1b Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Tue, 15 Sep 2015 10:02:27 +0300 Subject: [PATCH] fix 2215 --- client/widgets/TextControls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/widgets/TextControls.cpp b/client/widgets/TextControls.cpp index 9584d39a7..f72a5618d 100644 --- a/client/widgets/TextControls.cpp +++ b/client/widgets/TextControls.cpp @@ -498,10 +498,10 @@ void CTextInput::setText( const std::string &nText, bool callCb ) bool CTextInput::captureThisEvent(const SDL_KeyboardEvent & key) { - if(key.keysym.sym == SDLK_RETURN || key.keysym.sym == SDLK_KP_ENTER) + if(key.keysym.sym == SDLK_RETURN || key.keysym.sym == SDLK_KP_ENTER || key.keysym.sym == SDLK_ESCAPE) return false; - return false; + return true; } void CTextInput::textInputed(const SDL_TextInputEvent & event)