[PR #1314] [MERGED] feat: implement context menu #4655

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/1314
Author: @LucasXu0
Created: 10/18/2022
Status: Merged
Merged: 10/19/2022
Merged by: @LucasXu0

Base: mainHead: feature/context_menu


📝 Commits (5)

  • 30700cd feat: implement context menu
  • 9e40b7f Merge remote-tracking branch 'origin/main' into feature/context_menu
  • 793d380 test: add context menu test
  • d90414a fix: could not copy and paste the plain text
  • c793eb6 test: skip the secondary tap test on Windows

📊 Changes

14 files changed (+269 additions, -203 deletions)

View changed files

📝 frontend/app_flowy/packages/appflowy_editor/example/lib/main.dart (+14 -0)
frontend/app_flowy/packages/appflowy_editor/lib/src/service/context_menu/built_in_context_menu_item.dart (+28 -0)
frontend/app_flowy/packages/appflowy_editor/lib/src/service/context_menu/context_menu.dart (+90 -0)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/arrow_keys_handler.dart (+8 -8)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/backspace_handler.dart (+4 -17)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/copy_paste_handler.dart (+13 -8)
frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/legacy/arrow_keys_handler.dart (+0 -153)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/slash_handler.dart (+6 -7)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/whitespace_handler.dart (+0 -5)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/selection/selection_gesture.dart (+3 -0)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/selection_service.dart (+41 -0)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/shortcut_event/built_in_shortcut_events.dart (+7 -4)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/shortcut_event/shortcut_event_handler.dart (+1 -1)
📝 frontend/app_flowy/packages/appflowy_editor/test/service/selection_service_test.dart (+54 -0)

📄 Description

Show the context menu when right-clicking the selection.


🔄 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/1314 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 10/18/2022 **Status:** ✅ Merged **Merged:** 10/19/2022 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `feature/context_menu` --- ### 📝 Commits (5) - [`30700cd`](https://github.com/AppFlowy-IO/AppFlowy/commit/30700cd5130853261fcf2cd7e095b44036eb7300) feat: implement context menu - [`9e40b7f`](https://github.com/AppFlowy-IO/AppFlowy/commit/9e40b7f9923b1e0932ce25a2054380724dc8dcef) Merge remote-tracking branch 'origin/main' into feature/context_menu - [`793d380`](https://github.com/AppFlowy-IO/AppFlowy/commit/793d3808ec2aa727d7a70168d5bb7418877c2b2f) test: add context menu test - [`d90414a`](https://github.com/AppFlowy-IO/AppFlowy/commit/d90414a8c117e235a764d0996dd8ce3f0598943d) fix: could not copy and paste the plain text - [`c793eb6`](https://github.com/AppFlowy-IO/AppFlowy/commit/c793eb67fc32a5d3406ebacb512b874675346fd9) test: skip the secondary tap test on Windows ### 📊 Changes **14 files changed** (+269 additions, -203 deletions) <details> <summary>View changed files</summary> 📝 `frontend/app_flowy/packages/appflowy_editor/example/lib/main.dart` (+14 -0) ➕ `frontend/app_flowy/packages/appflowy_editor/lib/src/service/context_menu/built_in_context_menu_item.dart` (+28 -0) ➕ `frontend/app_flowy/packages/appflowy_editor/lib/src/service/context_menu/context_menu.dart` (+90 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/arrow_keys_handler.dart` (+8 -8) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/backspace_handler.dart` (+4 -17) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/copy_paste_handler.dart` (+13 -8) ➖ `frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/legacy/arrow_keys_handler.dart` (+0 -153) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/slash_handler.dart` (+6 -7) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/whitespace_handler.dart` (+0 -5) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/selection/selection_gesture.dart` (+3 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/selection_service.dart` (+41 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/shortcut_event/built_in_shortcut_events.dart` (+7 -4) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/shortcut_event/shortcut_event_handler.dart` (+1 -1) 📝 `frontend/app_flowy/packages/appflowy_editor/test/service/selection_service_test.dart` (+54 -0) </details> ### 📄 Description <img width="736" alt="" src="https://user-images.githubusercontent.com/11863087/196368410-8b04934a-eab1-42fe-bee9-1e71724287ec.png"> Show the context menu when right-clicking the selection. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 21:38:46 +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#4655
No description provided.