openReplaceDialog function

CommandShortcutEvent openReplaceDialog({
  1. FindReplaceLocalizations? localizations,
  2. required BuildContext context,
  3. required FindReplaceStyle style,
})

Implementation

CommandShortcutEvent openReplaceDialog({
  FindReplaceLocalizations? localizations,
  required BuildContext context,
  required FindReplaceStyle style,
}) =>
    CommandShortcutEvent(
      key: 'show the find and replace dialog',
      getDescription: () => AppFlowyEditorL10n.current.cmdOpenFindAndReplace,
      command: 'ctrl+h',
      macOSCommand: 'cmd+h',
      handler: (editorState) => _showFindAndReplaceDialog(
        context,
        editorState,
        localizations: localizations,
        style: style,
        openReplace: true,
      ),
    );