Branch
Hash :
31a841ae
Author :
Date :
2024-10-14T16:05:35
state: support querying whether virtual modifiers are active Previously it was not possible to query the status of virtual modifiers with the following functions: - `xkb_state_mod_index_is_active` - `xkb_state_mod_indices_are_active` - `xkb_state_mod_name_is_active` - `xkb_state_mod_names_are_active` Note that it may *overmatch* if some modifier mappings overlap. For example, the default “us” PC layout maps both “Alt” and “Meta” to the real modifier “Mod1”; thus “Mod1”, “Alt” and “Meta” modifiers will return the same result with these functions.
partial modifier_keys
xkb_symbols "super_hyper" {
key <MDSW> {
type[1] = "TWO_LEVEL",
symbols[1] = [ Super_L, Hyper_L ]
};
modifier_map Mod3 { <MDSW> };
};
xkb_symbols "meta" {
key <META> {
type[1] = "ONE_LEVEL",
symbols[1] = [ Meta_L ]
};
modifier_map Mod3 { <META> };
};