Skip to content

Commit

Permalink
accept any case in binds
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Sep 21, 2022
1 parent d49af1c commit d3ffccd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit d3ffccd

Please sign in to comment.