From d3ffccd45ff6d6f7bf8cd08b4c1d9e0c00635ab4 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 21 Sep 2022 17:41:19 +0100 Subject: [PATCH] accept any case in binds --- src/config/ConfigManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 94a81458..f3c99e86 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -703,6 +703,9 @@ void CConfigManager::handleBind(const std::string& command, const std::string& v if (mouse) HANDLER = "mouse"; + // to lower + std::transform(HANDLER.begin(), HANDLER.end(), HANDLER.begin(), ::tolower); + const auto DISPATCHER = g_pKeybindManager->m_mDispatchers.find(HANDLER); if (DISPATCHER == g_pKeybindManager->m_mDispatchers.end()) {