summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/KeyUtil.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/FbTk/KeyUtil.cc b/src/FbTk/KeyUtil.cc
index cb0db93..4300cd7 100644
--- a/src/FbTk/KeyUtil.cc
+++ b/src/FbTk/KeyUtil.cc
@@ -172,8 +172,10 @@ void KeyUtil::grabKey(unsigned int key, unsigned int mod) {
172unsigned int KeyUtil::getKey(const char *keystr) { 172unsigned int KeyUtil::getKey(const char *keystr) {
173 if (!keystr) 173 if (!keystr)
174 return 0; 174 return 0;
175 return XKeysymToKeycode(App::instance()->display(), 175 KeySym sym = XStringToKeysym(keystr);
176 XStringToKeysym(keystr)); 176 if (sym==NoSymbol)
177 return 0;
178 return XKeysymToKeycode(App::instance()->display(), sym);
177} 179}
178 180
179 181