From ec30c4a3226134ae381de0108f63c1d0d625e6a3 Mon Sep 17 00:00:00 2001 From: Ellet Date: Fri, 21 Jun 2024 03:35:59 +0300 Subject: [PATCH] refactor: rename UpdateCursorLocationAction to NavigateToDocumentBoundaryAction --- lib/src/widgets/raw_editor/raw_editor_actions.dart | 4 ++-- lib/src/widgets/raw_editor/raw_editor_state.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/widgets/raw_editor/raw_editor_actions.dart b/lib/src/widgets/raw_editor/raw_editor_actions.dart index 0867a29d..2993fe5b 100644 --- a/lib/src/widgets/raw_editor/raw_editor_actions.dart +++ b/lib/src/widgets/raw_editor/raw_editor_actions.dart @@ -578,9 +578,9 @@ class QuillEditorInsertEmbedIntent extends Intent { final Attribute type; } -class UpdateCursorLocationAction +class NavigateToDocumentBoundaryAction extends ContextAction { - UpdateCursorLocationAction(this.state); + NavigateToDocumentBoundaryAction(this.state); final QuillRawEditorState state; diff --git a/lib/src/widgets/raw_editor/raw_editor_state.dart b/lib/src/widgets/raw_editor/raw_editor_state.dart index 5bd5c45f..1f2b7ff4 100644 --- a/lib/src/widgets/raw_editor/raw_editor_state.dart +++ b/lib/src/widgets/raw_editor/raw_editor_state.dart @@ -1687,7 +1687,7 @@ class QuillRawEditorState extends EditorState QuillEditorApplyHeaderIntent: _applyHeaderAction, QuillEditorApplyCheckListIntent: _applyCheckListAction, QuillEditorApplyLinkIntent: QuillEditorApplyLinkAction(this), - ScrollToDocumentBoundaryIntent: UpdateCursorLocationAction(this) + ScrollToDocumentBoundaryIntent: NavigateToDocumentBoundaryAction(this) }; @override