enum UIng::Modifiers

Overview

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.

Defined in:

uing/modifiers.cr

Enum Members

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

Instance Method Summary

Instance Method Detail

def alt? #

Returns true if this enum value contains Alt


[View source]
def ctrl? #

Returns true if this enum value contains Ctrl


[View source]
def none? #

[View source]
def primary? #

Returns true if this enum value contains Primary


[View source]
def shift? #

Returns true if this enum value contains Shift


[View source]
def super? #

Returns true if this enum value contains Super


[View source]