struct TerminalRender::Input::Key

Overview

Responsible for meta-data information about key pressed

Defined in:

render/terminal/key_event.cr

Constructors

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(name : String, ctrl : Bool = false, meta : Bool = false, shift : Bool = false) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(name _name = @name, ctrl _ctrl = @ctrl, meta _meta = @meta, shift _shift = @shift) #

[View source]
def ctrl : Bool #

def meta : Bool #

def name : String #

def shift : Bool #