Update GUI::Key constructs

svn-id: r27643
This commit is contained in:
Max Horn 2007-06-23 00:05:32 +00:00
parent 05a70fc8e4
commit f97cbb8294
9 changed files with 85 additions and 82 deletions

View file

@ -59,7 +59,7 @@ static int mapKey(SDLKey key, SDLMod mod, Uint16 unicode)
return key;
} else if (unicode) {
return unicode;
} else if (key >= 'a' && key <= 'z' && mod & KMOD_SHIFT) {
} else if (key >= 'a' && key <= 'z' && (mod & KMOD_SHIFT)) {
return key & ~0x20;
} else if (key >= SDLK_NUMLOCK && key <= SDLK_EURO) {
return 0;