r and e exclusivity in bind

This commit is contained in:
vaxerski 2022-07-26 17:04:26 +02:00
parent 66eac124e2
commit 7dc014e967

View file

@ -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(",")));