modern-canvas
Version:
A JavaScript WebGL rendering engine. only the ESM.
21 lines (20 loc) • 599 B
TypeScript
import { InputEvent } from './InputEvent';
export declare class KeyboardInputEvent extends InputEvent implements KeyboardEvent {
altKey: boolean;
charCode: number;
code: string;
ctrlKey: boolean;
isComposing: boolean;
key: string;
keyCode: number;
location: number;
metaKey: boolean;
repeat: boolean;
shiftKey: boolean;
getModifierState(..._args: any[]): boolean;
initKeyboardEvent(..._args: any[]): void;
DOM_KEY_LOCATION_STANDARD: 0x00;
DOM_KEY_LOCATION_LEFT: 0x01;
DOM_KEY_LOCATION_RIGHT: 0x02;
DOM_KEY_LOCATION_NUMPAD: 0x03;
}