mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
fix 2215
This commit is contained in:
parent
395070b584
commit
d181d764bb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user