Scope

Scope class

A scope receives keyboard events and binds callbacks to given hotkeys. Only one scope is active at a time, but scopes may define parent scopes (in the constructor) and inherit their hotkeys.

Signature:

export class Scope 

Constructors

ConstructorModifiersDescription
(constructor)(parent)Constructs a new instance of the Scope class

Methods

MethodModifiersDescription
register(modifiers, key, func)Add a keymap event handler to this scope.
unregister(handler)Remove an existing keymap event handler.