mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-09 01:06:07 +02:00
- fixed modifiers keys behaviour in TextInput
- erm compilation is optional in cmake (too memory-consuming for old systems) - minor fixes
This commit is contained in:
@ -1554,7 +1554,10 @@ void CTextInput::keyPressed( const SDL_KeyboardEvent & key )
|
||||
text.resize(text.size()-1);
|
||||
break;
|
||||
default:
|
||||
text += key.keysym.unicode; //TODO 16-/>8
|
||||
if (key.keysym.unicode < ' ')
|
||||
return;
|
||||
else
|
||||
text += key.keysym.unicode; //TODO 16-/>8
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user