toggleCodeCommand top-level property
Implementation
final CommandShortcutEvent toggleCodeCommand = CommandShortcutEvent(
key: 'toggle code',
getDescription: () => AppFlowyEditorL10n.current.cmdToggleCode,
command: 'ctrl+e',
macOSCommand: 'cmd+e',
handler: (editorState) => _toggleAttribute(
editorState,
AppFlowyRichTextKeys.code,
),
);