struct TUI::Event::Key

Overview

TODO Handle modifiers

Defined in:

tui/event/key.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(key : Char | TUI::Key | Nil) #

[View source]
def self.new(key : Char | TUI::Key | Nil, *, alt : Bool | Nil = false, ctrl : Bool | Nil = false, shift : Bool | Nil = false) #

[View source]
def self.new #

[View source]

Instance Method Detail

def alt : Bool #

[View source]
def alt? : Bool | Nil #

[View source]
def ctrl : Bool #

[View source]
def ctrl? : Bool | Nil #

[View source]
def key : TUI::Key | Char #

[View source]
def key? : TUI::Key | Char | Nil #

[View source]
def shift : Bool #

[View source]
def shift? : Bool | Nil #

[View source]