enum

UIng::Modifiers

Inherits Enum < Comparable < Value < Object

Keyboard modifier bits shared by Area events and menu shortcuts. Primary means Command on macOS and Control on Windows/Linux. Area events never report Primary; Super is invalid for menu shortcuts.

Constants

Ctrl = 1
Alt = 2
Shift = 4
Super = 8
Primary = 16
None = 0
All = 31

Instance methods

alt?

Returns true if this enum value contains Alt

Source
ctrl?

Returns true if this enum value contains Ctrl

Source
none?
Source
primary?

Returns true if this enum value contains Primary

Source
shift?

Returns true if this enum value contains Shift

Source
super?

Returns true if this enum value contains Super

Source