summaryrefslogtreecommitdiff
path: root/library/Core.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-03-28 15:25:55 +0800
committerPetr Mrázek2012-03-28 17:00:06 +0800
commitfe091de0b23791a7a76382e66b2c923edeea19cb (patch)
treee9d868196383be942eca395a1e110ceed4ed9db9 /library/Core.cpp
parent9604be2701616c437a7b3a84974d761d1143dd20 (diff)
downloaddfhack-fe091de0b23791a7a76382e66b2c923edeea19cb.tar.gz
dfhack-fe091de0b23791a7a76382e66b2c923edeea19cb.tar.bz2
dfhack-fe091de0b23791a7a76382e66b2c923edeea19cb.tar.xz
Fix F keys in keybindings: they obviously don't have unicode symbols.
Diffstat (limited to 'library/Core.cpp')
-rw-r--r--library/Core.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/Core.cpp b/library/Core.cpp
index afaf2368..b298b955 100644
--- a/library/Core.cpp
+++ b/library/Core.cpp
@@ -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;