diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/keyboard.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/keyboard.cc b/src/client/keyboard.cc index 1ebba12..5416580 100644 --- a/src/client/keyboard.cc +++ b/src/client/keyboard.cc @@ -55,7 +55,7 @@ Keyboard::Keyboard() Key *key = 0; add_key("backspace", SDLK_BACKSPACE); - add_key("tab", SDLK_TAB); + add_key("tab", SDLK_TAB, 0, "impulse"); add_key("clear", SDLK_CLEAR); add_key("enter", SDLK_RETURN); add_key("pause", SDLK_PAUSE); @@ -356,7 +356,7 @@ void Keyboard::bind(std::string const &name, const std::string str) modifier = Key::Ctrl; } else if ((keyname.size() > 4) && (keyname.substr(0, 4).compare("alt+") == 0)) { keyname.erase(0, 4); - modifier = Key::Shift; + modifier = Key::Alt; } else if ((keyname.size() > 6) && (keyname.substr(keyname.size() - 6, 6).compare("+shift") == 0)) { keyname.erase(keyname.size() - 6, 6); @@ -366,7 +366,7 @@ void Keyboard::bind(std::string const &name, const std::string str) modifier = Key::Ctrl; } else if ((keyname.size() > 4) && (keyname.substr(keyname.size() - 4, 4).compare("+alt") == 0)) { keyname.erase(0, keyname.size() -46); - modifier = Key::Shift; + modifier = Key::Alt; } Key *key = find(keyname); @@ -401,7 +401,7 @@ void Keyboard::unbind(std::string const &name) modifier = Key::Ctrl; } else if ((keyname.size() > 4) && (keyname.substr(0, 4).compare("alt+") == 0)) { keyname.erase(0, 4); - modifier = Key::Shift; + modifier = Key::Alt; } else if ((keyname.size() > 6) && (keyname.substr(keyname.size() - 6, 6).compare("+shift") == 0)) { keyname.erase(keyname.size() - 6, 6); @@ -411,7 +411,7 @@ void Keyboard::unbind(std::string const &name) modifier = Key::Ctrl; } else if ((keyname.size() > 4) && (keyname.substr(keyname.size() - 4, 4).compare("+alt") == 0)) { keyname.erase(0, keyname.size() -46); - modifier = Key::Shift; + modifier = Key::Alt; } Key *key = find(name); |