keybinds: fix bindm (#6429)

* fixed mouse dispatcher

* no brakets

* move command up
This commit is contained in:
Moritz G
2024-06-11 23:02:29 +02:00
committed by GitHub
parent b6bf4afb48
commit 8412ffcc42

View File

@@ -2030,6 +2030,9 @@ std::optional<std::string> CConfigManager::handleBind(const std::string& command
const auto COMMAND = mouse ? HANDLER : ARGS[3 + DESCR_OFFSET];
if (mouse)
HANDLER = "mouse";
// to lower
std::transform(HANDLER.begin(), HANDLER.end(), HANDLER.begin(), ::tolower);