1
0
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:
Ivan Savenko
2012-08-10 08:49:18 +00:00
parent d3d24d0737
commit d72c44e4c3
7 changed files with 15 additions and 6 deletions

View File

@ -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;
}