customToggleHighlightCommand function

CommandShortcutEvent customToggleHighlightCommand({
  1. required ToggleColorsStyle style,
})

Implementation

CommandShortcutEvent customToggleHighlightCommand({
  required ToggleColorsStyle style,
}) =>
    CommandShortcutEvent(
      key: 'toggle highlight',
      getDescription: () => AppFlowyEditorL10n.current.cmdToggleHighlight,
      command: 'ctrl+shift+h',
      macOSCommand: 'cmd+shift+h',
      handler: (editorState) => _toggleHighlight(editorState, style: style),
    );