keybinds: allow MOD1 as an alias of ALT

This commit is contained in:
vaxerski 2023-04-06 19:28:09 +01:00
parent a740e3e517
commit 80650b6722

View file

@ -103,7 +103,7 @@ uint32_t CKeybindManager::stringToModMask(std::string mods) {
modMask |= WLR_MODIFIER_CAPS; modMask |= WLR_MODIFIER_CAPS;
if (mods.contains("CTRL") || mods.contains("CONTROL")) if (mods.contains("CTRL") || mods.contains("CONTROL"))
modMask |= WLR_MODIFIER_CTRL; modMask |= WLR_MODIFIER_CTRL;
if (mods.contains("ALT")) if (mods.contains("ALT") || mods.contains("MOD1"))
modMask |= WLR_MODIFIER_ALT; modMask |= WLR_MODIFIER_ALT;
if (mods.contains("MOD2")) if (mods.contains("MOD2"))
modMask |= WLR_MODIFIER_MOD2; modMask |= WLR_MODIFIER_MOD2;