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

develop
Alexander Gavrilov 2012-03-28 11:25:55 +04:00
parent abebb7fd2d
commit d6e6fc483f
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:
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;