UNPKG

diagram-js

Version:

A toolbox for displaying and modifying diagrams on the web

33 lines (31 loc) 1.05 kB
/** * Adds default keyboard bindings. * * This does not pull in any features will bind only actions that * have previously been registered against the editorActions component. * */ export default class KeyboardBindings { static $inject: string[]; /** * @param eventBus * @param keyboard */ constructor(eventBus: EventBus, keyboard: Keyboard); /** * Register available keyboard bindings. * * @param keyboard * @param editorActions */ registerBindings(keyboard: Keyboard, editorActions: EditorActions): void; } type EditorActions = import("../editor-actions/EditorActions.js").default; type EventBus = import("../../core/EventBus.js").default; type Keyboard = import("./Keyboard.js").default; import { KEYS_COPY } from './KeyboardUtil.js'; import { KEYS_PASTE } from './KeyboardUtil.js'; import { KEYS_UNDO } from './KeyboardUtil.js'; import { KEYS_REDO } from './KeyboardUtil.js'; export { KEYS_COPY, KEYS_PASTE, KEYS_UNDO, KEYS_REDO }; //# sourceMappingURL=KeyboardBindings.d.ts.map