UNPKG

armor-editor

Version:

Advanced rich text editor with premium armor-grade security, real-time collaboration, spell checking, track changes, and framework-agnostic design for React, Vue, Angular, Next.js, Nuxt.js

21 lines (20 loc) 490 B
export interface Shortcut { key: string; ctrl?: boolean; alt?: boolean; shift?: boolean; meta?: boolean; action: () => void; description: string; } export declare class ShortcutManager { private shortcuts; private editor; constructor(editor: any); private setupEventListener; private getShortcutKey; register(shortcut: Shortcut): void; private buildShortcutKey; private registerDefaultShortcuts; getShortcuts(): Shortcut[]; }