refactor: rename UpdateCursorLocationAction to NavigateToDocumentBoundaryAction

pull/1937/head
Ellet 10 months ago
parent 0a1ec0b0af
commit ec30c4a322
  1. 4
      lib/src/widgets/raw_editor/raw_editor_actions.dart
  2. 2
      lib/src/widgets/raw_editor/raw_editor_state.dart

@ -578,9 +578,9 @@ class QuillEditorInsertEmbedIntent extends Intent {
final Attribute type;
}
class UpdateCursorLocationAction
class NavigateToDocumentBoundaryAction
extends ContextAction<ScrollToDocumentBoundaryIntent> {
UpdateCursorLocationAction(this.state);
NavigateToDocumentBoundaryAction(this.state);
final QuillRawEditorState state;

@ -1687,7 +1687,7 @@ class QuillRawEditorState extends EditorState
QuillEditorApplyHeaderIntent: _applyHeaderAction,
QuillEditorApplyCheckListIntent: _applyCheckListAction,
QuillEditorApplyLinkIntent: QuillEditorApplyLinkAction(this),
ScrollToDocumentBoundaryIntent: UpdateCursorLocationAction(this)
ScrollToDocumentBoundaryIntent: NavigateToDocumentBoundaryAction(this)
};
@override

Loading…
Cancel
Save