ion.constants.modifiers¶
Modifier bitmask values - one bit per modifier. These are not used
by MatchKey or MatchPointer
(those take individual boolean kwargs). The bitmask values are for
direct comparison against event.modifiers inside operator
callbacks and hook handlers, where the raw modifier state is
available as a single integer.
HYPER is held only where the keymap gives Hyper a modifier of its
own, as the xkb options caps:hyper and altwin:hyper_win do.
Where the keymap puts Hyper on Mod4 with Super (hyper:mod4) the two
cannot be told apart, and holding Hyper reads as LOGO. The
hyper argument of MatchKey and
MatchPointer behaves the same way.
Modifier bitmask constants.
Data¶
- ion.constants.modifiers.ALT¶
- Value:
8
- ion.constants.modifiers.CTRL¶
- Value:
4
- ion.constants.modifiers.HYPER¶
- Value:
128
- ion.constants.modifiers.LOGO¶
- Value:
64
- ion.constants.modifiers.SHIFT¶
- Value:
1