From 550ca0811ed973b1a1887de17009f1a646ba806e Mon Sep 17 00:00:00 2001 From: Parracodea Date: Sat, 30 Mar 2024 14:21:11 -0400 Subject: [PATCH] Correctly read Dash character ("-") keybind from settings file --- src/io/keybinding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/keybinding.cpp b/src/io/keybinding.cpp index 3c7584f5..06c07d07 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); }