Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Opal::TEA::KeyMsg
Inherits
Opal::TEA::Msg
<
Reference
<
Object
Dispatched when a keyboard key is pressed.
Constructors
from_event
(event :
Terminal::KeyEvent
) :
KeyMsg
Source
new
(key :
String
, char :
Char
|
Nil
= nil, ctrl :
Bool
= false, alt :
Bool
= false, shift :
Bool
= false)
Source
Instance methods
alt?
Source
char
Source
ctrl?
Source
key
Source
matches?
(key_desc :
String
) :
Bool
Source
shift?
Source