UNPKG

@blockly/keyboard-navigation

Version:
50 lines 1.46 kB
/** * Keyboard navigation states. * The different parts of Blockly that the user navigates between. */ export declare enum STATE { NOWHERE = "nowhere", WORKSPACE = "workspace", FLYOUT = "flyout", TOOLBOX = "toolbox" } /** * Default keyboard navigation shortcut names. */ export declare enum SHORTCUT_NAMES { UP = "up", DOWN = "down", RIGHT = "right", LEFT = "left", INSERT = "insert", EDIT_OR_CONFIRM = "edit_or_confirm", DISCONNECT = "disconnect", TOOLBOX = "toolbox", EXIT = "exit", MENU = "menu", COPY = "keyboard_nav_copy", CUT = "keyboard_nav_cut", PASTE = "keyboard_nav_paste", MOVE_WS_CURSOR_UP = "workspace_up", MOVE_WS_CURSOR_DOWN = "workspace_down", MOVE_WS_CURSOR_LEFT = "workspace_left", MOVE_WS_CURSOR_RIGHT = "workspace_right", CREATE_WS_CURSOR = "to_workspace", LIST_SHORTCUTS = "list_shortcuts", CLEAN_UP = "clean_up_workspace" } /** * Types of possible messages passed into the loggingCallback in the Navigation * class. */ export declare enum LOGGING_MSG_TYPE { ERROR = "error", WARN = "warn", LOG = "log" } /** * Categories used to organised the shortcut dialog. * Shortcut name should match those obtained from the Blockly shortcut register. */ export declare const SHORTCUT_CATEGORIES: Record<string, Array<SHORTCUT_NAMES | 'undo' | 'redo' | 'cut' | 'copy' | 'paste' | 'delete'>>; //# sourceMappingURL=constants.d.ts.map