Fix F keys in keybindings: they obviously don't have unicode symbols.

develop
Alexander Gavrilov 2012-03-28 15:25:55 +08:00 committed by Petr Mrázek
parent 9604be2701
commit fe091de0b2
1 changed files with 1 additions and 0 deletions

@ -972,6 +972,7 @@ int Core::UnicodeAwareSym(const SDL::KeyboardEvent& ke)
{ {
// Assume keyboard layouts don't change the order of numbers: // Assume keyboard layouts don't change the order of numbers:
if( '0' <= ke.ksym.sym && ke.ksym.sym <= '9') return ke.ksym.sym; if( '0' <= ke.ksym.sym && ke.ksym.sym <= '9') return ke.ksym.sym;
if(SDL::K_F1 <= ke.ksym.sym && ke.ksym.sym <= SDL::K_F12) return ke.ksym.sym;
int unicode = ke.ksym.unicode; int unicode = ke.ksym.unicode;