mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-07 16:35:59 +01:00
Added more mods
This commit is contained in:
parent
7a9a5b2427
commit
ddb9335111
1 changed files with 4 additions and 0 deletions
|
@ -73,6 +73,10 @@ unsigned int KeybindManager::modToMask(std::string mod) {
|
|||
if (CONTAINS(mod, "SHIFT")) sum |= XCB_MOD_MASK_SHIFT;
|
||||
if (CONTAINS(mod, "CTRL")) sum |= XCB_MOD_MASK_CONTROL;
|
||||
if (CONTAINS(mod, "ALT") || CONTAINS(mod, "MOD1")) sum |= XCB_MOD_MASK_1;
|
||||
if (CONTAINS(mod, "MOD2")) sum |= XCB_MOD_MASK_2;
|
||||
if (CONTAINS(mod, "MOD3")) sum |= XCB_MOD_MASK_3;
|
||||
if (CONTAINS(mod, "MOD5")) sum |= XCB_MOD_MASK_5;
|
||||
if (CONTAINS(mod, "LOCK")) sum |= XCB_MOD_MASK_LOCK;
|
||||
|
||||
return sum;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue