mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-29 19:21:54 -07:00
Make bind modmask case-insensitive (#2714)
This commit is contained in:
@@ -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"))
|
||||
|
Reference in New Issue
Block a user