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.cr

Enum 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

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 shift? #

Returns true if this enum value contains Shift


[View source]
def super? #

Returns true if this enum value contains Super


[View source]