From 06f5910365414d0d519f66c25bcb22709f8cb197 Mon Sep 17 00:00:00 2001 From: Lennard Hofmann Date: Fri, 14 Jul 2023 18:39:53 +0200 Subject: [PATCH] Make bind modmask case-insensitive (#2714) --- src/managers/KeybindManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index a3bac30e..4b2f1f63 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -102,6 +102,7 @@ void CKeybindManager::removeKeybind(uint32_t mod, const std::string& key) { uint32_t CKeybindManager::stringToModMask(std::string mods) { uint32_t modMask = 0; + std::transform(mods.begin(), mods.end(), mods.begin(), ::toupper); if (mods.contains("SHIFT")) modMask |= WLR_MODIFIER_SHIFT; if (mods.contains("CAPS"))