enum Eagle::KeyMod

Overview

Modifier keys held during a key event. It is a flags enum, so several can be set at once: event.mods.ctrl?.

Defined in:

eagle/input/keys.cr

Enum Members

Shift = 1

Either shift key.

Ctrl = 2

Either control key.

Alt = 4

Either alt/option key.

Gui = 8

Either Command (macOS) or Windows key.

None = 0
All = 15

Instance Method Summary

Instance Method Detail

def alt? #

Returns true if this enum value contains Alt


def ctrl? #

Returns true if this enum value contains Ctrl


def gui? #

Returns true if this enum value contains Gui


def none? #

def shift? #

Returns true if this enum value contains Shift