struct TerminalRender::Input::KeyEvent

Overview

Represents key event emitted during keyboard press

Defined in:

render/terminal/key_event.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

to_sban(io : IO)
to_sban(encoder : SBAN::Encoder)
to_sban : Bytes
to_sban

Class methods inherited from class Object

from_sban(string_or_io) from_sban

Constructor Detail

def self.new(key : Key, value : String, line : String) #

[View source]

Class Method Detail

def self.from(keys : Hash(String, String), char : String | Char, line : String = "") #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(key _key = @key, value _value = @value, line _line = @line) #

[View source]
def key : Key #

def line : String #

def trigger? #

[View source]
def value : String #