Key

terminus.Key
See theKey companion object
final case class Key(modifiers: KeyModifier, code: KeyCode)

Represents a key press. The information is split between the key code and any modifiers that were pressed. We only interpret modifiers if the terminal passes that information to us. So, for example, 'A' is not represented as Shift + 'a' as the terminal does not send that information.

The majority of special keys (up as arrow keys and function keys) as defined as constants on the companion object.

Attributes

Companion
object
Source
Key.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product