UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

14 lines (13 loc) 512 B
import { Widget } from '../widgets/Widget.js'; import { KeyEvent } from './KeyEvent.js'; /** * A key press {@link KeyEvent} (key down). Also dispatched on key repeats. * * @category Event */ export declare class KeyPressEvent extends KeyEvent { static readonly type = "key-press"; readonly type: typeof KeyPressEvent.type; constructor(key: string, shift: boolean, ctrl: boolean, alt: boolean, virtual: boolean, target: Widget | null); cloneWithTarget(target: Widget | null): KeyPressEvent; }