UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

16 lines 548 B
export class TextInputHandler { /** * Create a new text input handler. Note that the signature of this * constructor in base classes must have a single `listener` argument. Must * not change the current focus. */ constructor(listener, domElems) { this.listener = listener; this.domElems = domElems; } /** Dismiss input handler. Must call super if overridden. */ dismiss() { this.listener(0 /* TextInputHandlerEventType.Dismiss */); } } //# sourceMappingURL=TextInputHandler.js.map