From 8294a05bf63096be673ea0c3aed6d0c11a317086 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 27 Jul 2008 12:22:58 +0000 Subject: make key names case insensitive on binding --- src/client/keyboard.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') 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 { -- cgit v1.2.3