enum
TermBuf::Modifiers
Overview
What was held down alongside the key.
The values are the xterm encoding minus one: a terminal sends 1 for no
modifier, 2 for shift, 3 for alt, and so on up.
Defined in:
termbuf/input/key.crEnum Members
-
Shift =
1_u8 -
Alt =
2_u8 -
Ctrl =
4_u8 -
Super =
8_u8 -
The windows, command, or meta key, depending on whose keyboard it is.
-
None =
0_u8 -
All =
15_u8
Instance Method Summary
-
#alt?
Returns
trueif this enum value containsAlt -
#ctrl?
Returns
trueif this enum value containsCtrl - #none?
-
#shift?
Returns
trueif this enum value containsShift -
#super?
Returns
trueif this enum value containsSuper