[PR #810] [MERGED] selection service documentation and implement auto wrap when selection changes. #4360

Closed
opened 2026-03-23 21:37:28 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/810
Author: @LucasXu0
Created: 8/10/2022
Status: Merged
Merged: 8/11/2022
Merged by: @LucasXu0

Base: mainHead: doc/flowy_selection_documentation


📝 Commits (4)

  • 046faf3 fix: unexpect behaviour when pressing enter key
  • ae0012b docs: documentation for selection_service
  • 1eec97c chore: refactor the service type
  • 50f8e1f feat: implement automatically wrap when the selection changes

📊 Changes

14 files changed (+481 additions, -504 deletions)

View changed files

📝 frontend/app_flowy/packages/flowy_editor/lib/flowy_editor.dart (+11 -6)
📝 frontend/app_flowy/packages/flowy_editor/lib/src/document/selection.dart (+32 -15)
📝 frontend/app_flowy/packages/flowy_editor/lib/src/render/rich_text/flowy_rich_text.dart (+1 -1)
📝 frontend/app_flowy/packages/flowy_editor/lib/src/service/editor_service.dart (+2 -22)
📝 frontend/app_flowy/packages/flowy_editor/lib/src/service/input_service.dart (+2 -3)
📝 frontend/app_flowy/packages/flowy_editor/lib/src/service/internal_key_event_handlers/arrow_keys_handler.dart (+4 -5)
frontend/app_flowy/packages/flowy_editor/lib/src/service/internal_key_event_handlers/default_key_event_handlers.dart (+22 -0)
📝 frontend/app_flowy/packages/flowy_editor/lib/src/service/internal_key_event_handlers/enter_without_shift_in_text_node_handler.dart (+1 -1)
📝 frontend/app_flowy/packages/flowy_editor/lib/src/service/keyboard_service.dart (+2 -2)
📝 frontend/app_flowy/packages/flowy_editor/lib/src/service/scroll_service.dart (+3 -2)
frontend/app_flowy/packages/flowy_editor/lib/src/service/selection/selection_gesture.dart (+113 -0)
📝 frontend/app_flowy/packages/flowy_editor/lib/src/service/selection_service.dart (+284 -443)
📝 frontend/app_flowy/packages/flowy_editor/lib/src/service/service.dart (+1 -2)
📝 frontend/app_flowy/packages/flowy_editor/lib/src/service/toolbar_service.dart (+3 -2)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/810 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 8/10/2022 **Status:** ✅ Merged **Merged:** 8/11/2022 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `doc/flowy_selection_documentation` --- ### 📝 Commits (4) - [`046faf3`](https://github.com/AppFlowy-IO/AppFlowy/commit/046faf38802448aa7841089d6084f92e0e0ac5f8) fix: unexpect behaviour when pressing enter key - [`ae0012b`](https://github.com/AppFlowy-IO/AppFlowy/commit/ae0012ba370efa271efd3f5df6a6983b665b29ac) docs: documentation for selection_service - [`1eec97c`](https://github.com/AppFlowy-IO/AppFlowy/commit/1eec97c761e75774123f6f995e3c44f2d89fe1ce) chore: refactor the service type - [`50f8e1f`](https://github.com/AppFlowy-IO/AppFlowy/commit/50f8e1f5d021e9444727783da0be1517ac3216d8) feat: implement automatically wrap when the selection changes ### 📊 Changes **14 files changed** (+481 additions, -504 deletions) <details> <summary>View changed files</summary> 📝 `frontend/app_flowy/packages/flowy_editor/lib/flowy_editor.dart` (+11 -6) 📝 `frontend/app_flowy/packages/flowy_editor/lib/src/document/selection.dart` (+32 -15) 📝 `frontend/app_flowy/packages/flowy_editor/lib/src/render/rich_text/flowy_rich_text.dart` (+1 -1) 📝 `frontend/app_flowy/packages/flowy_editor/lib/src/service/editor_service.dart` (+2 -22) 📝 `frontend/app_flowy/packages/flowy_editor/lib/src/service/input_service.dart` (+2 -3) 📝 `frontend/app_flowy/packages/flowy_editor/lib/src/service/internal_key_event_handlers/arrow_keys_handler.dart` (+4 -5) ➕ `frontend/app_flowy/packages/flowy_editor/lib/src/service/internal_key_event_handlers/default_key_event_handlers.dart` (+22 -0) 📝 `frontend/app_flowy/packages/flowy_editor/lib/src/service/internal_key_event_handlers/enter_without_shift_in_text_node_handler.dart` (+1 -1) 📝 `frontend/app_flowy/packages/flowy_editor/lib/src/service/keyboard_service.dart` (+2 -2) 📝 `frontend/app_flowy/packages/flowy_editor/lib/src/service/scroll_service.dart` (+3 -2) ➕ `frontend/app_flowy/packages/flowy_editor/lib/src/service/selection/selection_gesture.dart` (+113 -0) 📝 `frontend/app_flowy/packages/flowy_editor/lib/src/service/selection_service.dart` (+284 -443) 📝 `frontend/app_flowy/packages/flowy_editor/lib/src/service/service.dart` (+1 -2) 📝 `frontend/app_flowy/packages/flowy_editor/lib/src/service/toolbar_service.dart` (+3 -2) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 21:37:28 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#4360
No description provided.