openReplaceDialog function
CommandShortcutEvent
openReplaceDialog({
- FindReplaceLocalizations? localizations,
- required BuildContext context,
- 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,
),
);