class

Tui::KeyEvent

Inherits Tui::Event / Reference / Object

Constructors

new(key : Key = Key::Unknown, modifiers : Modifiers = Modifiers::None, char : Char | Nil = nil)
Source
new(char : Char, modifiers : Modifiers = Modifiers::None)
Source

Instance methods

alt?
Source
char
Source
ctrl?
Source
matches?(key_string : String) : Bool

Match against key string like "ctrl+s", "f5", "enter"

Source
meta?
Source
modifiers
Source
printable?

Check if this is a printable character

Source
shift?

Check modifiers

Source