1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
This commit is contained in:
AlexVinS 2015-09-15 10:02:27 +03:00
parent 395070b584
commit d181d764bb

View File

@ -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)