Edit

kc3-lang/libxkbcommon/test/data/symbols/overlapping_modifiers

Branch :

  • Show log

    Commit

  • Author : Pierre Le Marre
    Date : 2024-10-14 16:05:35
    Hash : 31a841ae
    Message : 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.

  • test/data/symbols/overlapping_modifiers
  • 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> };
    };