diff --git a/src/io/keybinding.cpp b/src/io/keybinding.cpp index 3c7584f..06c07d0 100644 --- a/src/io/keybinding.cpp +++ b/src/io/keybinding.cpp @@ -70,7 +70,7 @@ void Keybinding::setKeys(const std::initializer_list& keys) void Keybinding::addKey(const string& key, bool inverted) { - if (key.startswith("-")) + if (key.startswith("-") && key.length() > 1) { return addKey(key.substr(1), !inverted); }