site/node_modules/mj-context-menu/js/key_navigatable.d.ts
2024-10-14 08:09:33 +02:00

19 lines
443 B
TypeScript

export declare enum KEY {
RETURN = 13,
ESCAPE = 27,
SPACE = 32,
LEFT = 37,
UP = 38,
RIGHT = 39,
DOWN = 40
}
export interface KeyNavigatable {
keydown(event: KeyboardEvent): void;
escape(event: KeyboardEvent): void;
space(event: KeyboardEvent): void;
left(event: KeyboardEvent): void;
right(event: KeyboardEvent): void;
up(event: KeyboardEvent): void;
down(event: KeyboardEvent): void;
}