struct
TUI::KeyEvent
- TUI::KeyEvent
- Struct
- Value
- Object
Overview
A single parsed input event. #char is only meaningful when
key == Key::Char (the literal typed character); #row/#col are only
set for Key::MouseClick (1-based terminal coordinates — see
Keys.parse_sgr_mouse) and nil for every other kind, including the
wheel events, which carry no position; #text is only set for
Key::Paste (the full pasted content between bracketed-paste markers
— see Keys.parse_bracketed_paste), nil otherwise.
Defined in:
tui/core/keys.crConstructors
Instance Method Summary
- #char : Char
- #clone
- #col : Int32 | Nil
- #copy_with(key _key = @key, char _char = @char, row _row = @row, col _col = @col, text _text = @text)
- #key : Key
- #row : Int32 | Nil
- #text : String | Nil
Constructor Detail
def self.new(key : Key, char : Char = '\0', row : Int32 | Nil = nil, col : Int32 | Nil = nil, text : String | Nil = nil)
#
Instance Method Detail
def copy_with(key _key = @key, char _char = @char, row _row = @row, col _col = @col, text _text = @text)
#