KeyboardController

semagrams.controllers.KeyboardController
See theKeyboardController companion object

A bit of global state that keeps track of the keyboard.

The main functions are:

  • Keeping track of what keys and modifiers are currently held down
  • Adding keyboard events to EditorState

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def apply(es: EditorState, el: SvgElement): Unit

Get the keypress events from el and hook them into updating the KeyboardController state and additionally send them into es.events

Get the keypress events from el and hook them into updating the KeyboardController state and additionally send them into es.events

Attributes

Concrete fields

val keyState: Var[State]