toggleCodeCommand top-level property

CommandShortcutEvent toggleCodeCommand
final

Implementation

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