@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
72 lines • 1.35 kB
JavaScript
export var KeyEnum = {
Alt: 'alt',
Backquote: 'backquote',
// `
Backslash: 'backslash',
// \
Backspace: 'backspace',
BracketLeft: 'bracketleft',
// [
BracketRight: 'bracketright',
// ]
Comma: 'comma',
// ,
Ctrl: 'ctrl',
Down: 'down',
Enter: 'enter',
Equal: 'equal',
// =
Esc: 'esc',
Left: 'left',
LeftClick: 'left-click',
LeftDoubleClick: 'left-double-click',
Meta: 'meta',
// Command on Mac, Win on Win
MiddleClick: 'middle-click',
Minus: 'minus',
// -
Mod: 'mod',
Number: '1-9',
// Command on Mac, Ctrl on Win
Period: 'period',
// .
Plus: 'equal',
// +
QuestionMark: 'slash',
// ?
Quote: 'quote',
// '
Right: 'right',
RightClick: 'right-click',
RightDoubleClick: 'right-double-click',
Semicolon: 'semicolon',
// ;
Shift: 'shift',
Slash: 'slash',
// /
Space: 'space',
Tab: 'tab',
Up: 'up',
Zero: '0'
};
export var HotkeyEnum = {
Bold: 'bold',
BulletList: 'bulletList',
CodeInline: 'codeInline',
Italic: 'italic',
Link: 'link',
Mention: 'mention',
NumberList: 'numberList',
PasteAsPlainText: 'pasteAsPlainText',
Redo: 'redo',
Slash: 'slash',
Strikethrough: 'strikethrough',
Underline: 'underline',
Undo: 'undo'
};
export var HotkeyScopeEnum = {
Format: 'format',
Insert: 'insert',
Plugin: 'plugin',
Slash: 'slash'
};