UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

21 lines 684 B
import { ModifierEvent } from './ModifierEvent.js'; import { FocusType } from '../core/FocusType.js'; /** * A keyboard {@link ModifierEvent}. This is an abstract class and is * implemented in the child classes {@link KeyPressEvent} and * {@link KeyReleaseEvent}. * * Has a focus type of {@link FocusType.Keyboard} and needs focus. * * @category Event */ export class KeyEvent extends ModifierEvent { constructor(key, shift, ctrl, alt, virtual, target) { super(shift, ctrl, alt, target); this.focusType = FocusType.Keyboard; this.needsFocus = true; this.key = key; this.virtual = virtual; } } //# sourceMappingURL=KeyEvent.js.map