mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 14:45:59 +01:00
Make bind modmask case-insensitive (#2714)
This commit is contained in:
parent
b159634ef9
commit
06f5910365
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ void CKeybindManager::removeKeybind(uint32_t mod, const std::string& key) {
|
||||||
|
|
||||||
uint32_t CKeybindManager::stringToModMask(std::string mods) {
|
uint32_t CKeybindManager::stringToModMask(std::string mods) {
|
||||||
uint32_t modMask = 0;
|
uint32_t modMask = 0;
|
||||||
|
std::transform(mods.begin(), mods.end(), mods.begin(), ::toupper);
|
||||||
if (mods.contains("SHIFT"))
|
if (mods.contains("SHIFT"))
|
||||||
modMask |= WLR_MODIFIER_SHIFT;
|
modMask |= WLR_MODIFIER_SHIFT;
|
||||||
if (mods.contains("CAPS"))
|
if (mods.contains("CAPS"))
|
||||||
|
|
Loading…
Reference in a new issue