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
Constructor | Modifiers | Description |
---|---|---|
(constructor)(parent) | Constructs a new instance of the Scope class |
Methods
Method | Modifiers | Description |
---|---|---|
register(modifiers, key, func) | Add a keymap event handler to this scope. | |
unregister(handler) | Remove an existing keymap event handler. |