1
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2025-07-29 19:21:54 -07:00

Make bind modmask case-insensitive ()

This commit is contained in:
Lennard Hofmann
2023-07-14 18:39:53 +02:00
committed by GitHub
parent b159634ef9
commit 06f5910365

@@ -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"))