struct TUI::Event::Key
- TUI::Event::Key
- TUI::Event
- Struct
- Value
- Object
Overview
TODO Handle modifiers
Defined in:
tui/event/key.crConstructors
- .new(key : Char | TUI::Key | Nil, alt : Bool | Nil, ctrl : Bool | Nil, shift : Bool | Nil)
- .new(key : Char | TUI::Key | Nil)
- .new(key : Char | TUI::Key | Nil, *, alt : Bool | Nil = false, ctrl : Bool | Nil = false, shift : Bool | Nil = false)
- .new
Instance Method Summary
- #alt : Bool
- #alt? : Bool | Nil
- #ctrl : Bool
- #ctrl? : Bool | Nil
- #key : TUI::Key | Char
- #key? : TUI::Key | Char | Nil
- #shift : Bool
- #shift? : Bool | Nil
Instance methods inherited from struct TUI::Event
time
time
Constructor methods inherited from struct TUI::Event
new
new
Constructor Detail
def self.new(key : Char | TUI::Key | Nil, alt : Bool | Nil, ctrl : Bool | Nil, shift : Bool | Nil)
#
def self.new(key : Char | TUI::Key | Nil, *, alt : Bool | Nil = false, ctrl : Bool | Nil = false, shift : Bool | Nil = false)
#