customToggleHighlightCommand function
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),
);