Added more mods

This commit is contained in:
vaxerski 2022-03-22 22:55:45 +01:00
parent 7a9a5b2427
commit ddb9335111

View file

@ -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;
}