enum

TermBuf::Input::Modifiers

Inherits Enum < Comparable < Value < Object

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.

Constants

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 methods

alt?

Returns true if this enum value contains Alt

Source
ctrl?

Returns true if this enum value contains Ctrl

Source
none?
Source
shift?

Returns true if this enum value contains Shift

Source
super?

Returns true if this enum value contains Super

Source