From 7dc014e967260ce576eaa5d4b0775a2a03bee969 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 26 Jul 2022 17:04:26 +0200 Subject: [PATCH] r and e exclusivity in bind --- src/config/ConfigManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index fedcbc14..2bdc8546 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -531,6 +531,11 @@ void CConfigManager::handleBind(const std::string& command, const std::string& v } } + if (release && repeat) { + parseError = "flags r and e are mutually exclusive"; + return; + } + auto valueCopy = value; const auto MOD = g_pKeybindManager->stringToModMask(valueCopy.substr(0, valueCopy.find_first_of(",")));