Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-27 12:22:58 +0000
committerStijn Buys <ingar@osirion.org>2008-07-27 12:22:58 +0000
commit8294a05bf63096be673ea0c3aed6d0c11a317086 (patch)
tree1c2b8d57b45ac263aa9f8b032ee037cec108faa2 /src/client
parent7c5ccbafdf9f72b7b572f2285d126a0a4e9aac74 (diff)
make key names case insensitive on binding
Diffstat (limited to 'src/client')
-rw-r--r--src/client/keyboard.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/keyboard.cc b/src/client/keyboard.cc
index 10d98ea..d8b14b3 100644
--- a/src/client/keyboard.cc
+++ b/src/client/keyboard.cc
@@ -167,7 +167,7 @@ Keyboard::Keyboard()
add_key("f7", SDLK_F7);
add_key("f8", SDLK_F8);
add_key("f9", SDLK_F9);
- add_key("f10", SDLK_F11);
+ add_key("f10", SDLK_F10);
add_key("f11", SDLK_F11);
add_key("f12", SDLK_F12);
add_key("f13", SDLK_F13);
@@ -329,7 +329,7 @@ Key *Keyboard::find(unsigned int keysym)
void Keyboard::bind(std::string const &name, const std::string str)
{
- Key *key = find(name);
+ Key *key = find(aux::lowercase(name));
if (key) {
key->assign(Key::None, str.c_str());
} else {