diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-26 17:04:26 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-26 17:04:26 +0200 |
| commit | 7dc014e967260ce576eaa5d4b0775a2a03bee969 (patch) | |
| tree | 1f8d47189e6e0f5c8dee7c6dbe6996af6752f6c8 /src/config/ConfigManager.cpp | |
| parent | 66eac124e263073d3f6f7afdd3a5bfc35eb15353 (diff) | |
r and e exclusivity in bind
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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(","))); |
