lost-sia
Version:
Single Image Annotation Tool
10 lines (9 loc) • 417 B
TypeScript
import { default as KeyAction } from '../models/KeyAction';
declare class KeyMapper {
isControlDown: boolean;
keyActionHandler: ((keyAction: any) => void) | undefined;
constructor(keyActionHandler?: ((keyAction: any) => void) | undefined);
keyDown(key: string, isShiftKeyPressed: boolean, isCtrlKeyPressed: boolean): void;
triggerKeyAction(keyAction: KeyAction): void;
}
export default KeyMapper;