struct

Opal::Terminal::KeyEvent

Inherits Struct < Value < Object

Represents a keyboard input event with modifier details.

Constructors

new(name : String, char : Char | Nil = nil, ctrl : Bool = false, alt : Bool = false, shift : Bool = false)
Source

Instance methods

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

Convenience helper: returns whether this event matches a string key description like "ctrl+c", "enter", "q", "up", "esc".

Source
name
Source
shift?
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source