State

semagrams.controllers.KeyboardController$.State
See theState companion object
case class State(keys: Set[String], modifiers: Set[KeyModifier])

The current state of the keyboard.

Attributes

keys

the keys that are currently held down

modifiers

the modifiers (i.e. shift, ctrl, etc.) that are currently held down

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def keydown(evt: KeyboardEvent): State

Update the state based on a keydown event

Update the state based on a keydown event

Attributes

def keyup(evt: KeyboardEvent): State

Update the state based on a keyup event

Update the state based on a keyup event

Attributes

def updateModifiers(evt: KeyboardEvent): State

Update the state of the modifiers based on the keyboard event

Update the state of the modifiers based on the keyboard event

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product