Skip to content

Commit

Permalink
Config: Check for escape being used in keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jan 17, 2018
1 parent b4187f0 commit bd0d815
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/Config.cpp
Expand Up @@ -332,6 +332,9 @@ void ConfigReader::getActionKey(const std::string & section, const std::string &
if(id == ActionKey::UNUSED && !setting->getValue().empty() && setting->getValue() != Input::KEY_NONE) {
LogWarning << "Error parsing key name for " << key << ": \"" << setting->getValue()
<< "\", resetting to \"" << Input::getKeyName(binding) << "\"";
} if(id == InputKeyId(Keyboard::Key_Escape)) {
LogWarning << "Invalid key for " << key << ": \"" << setting->getValue()
<< "\", resetting to \"" << Input::getKeyName(binding) << "\"";
} else {
binding = id;
}
Expand Down

0 comments on commit bd0d815

Please sign in to comment.