site/node_modules/mj-context-menu/js/key_navigatable.d.ts

19 lines
443 B
TypeScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
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;
}