[PR #1845] [MERGED] Improve Editing and Navigating shortcuts with Ctrl/Meta #4971

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/1845
Author: @MayurSMahajan
Created: 2/11/2023
Status: Merged
Merged: 2/15/2023
Merged by: @LucasXu0

Base: mainHead: fr_delete_word_shortcut_75


📝 Commits (9)

  • 5e9dbaf feat: handler for deleting a word
  • 9823ab5 chore: typo
  • e9c5c4e test: ctrl and backspace to delete word
  • 6038e2f feat: add ctrl alt arrows to select words
  • e886a11 fix: remove print statement
  • 1241ee4 fix: remove additional shortcut
  • 4335e36 fix: handle nodes empty case
  • 25d6a97 test: edge cases with delete word
  • d2b9e93 fix: press meta on macos

📊 Changes

4 files changed (+167 additions, -2 deletions)

View changed files

📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/arrow_keys_handler.dart (+27 -0)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/backspace_handler.dart (+2 -2)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/shortcut_event/built_in_shortcut_events.dart (+11 -0)
📝 frontend/app_flowy/packages/appflowy_editor/test/service/internal_key_event_handlers/arrow_keys_handler_test.dart (+127 -0)

📄 Description

Solves #75 #1825

Adds the following functionalities:

  • Ctrl + Backspace to delete a word.
  • Ctrl + Alt + Arrow Key Left to select the left word (left to the cursor).
  • Ctrl + Alt + Arrow Key Right to select the right word (right to the cursor).

🔄 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/1845 **Author:** [@MayurSMahajan](https://github.com/MayurSMahajan) **Created:** 2/11/2023 **Status:** ✅ Merged **Merged:** 2/15/2023 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `fr_delete_word_shortcut_75` --- ### 📝 Commits (9) - [`5e9dbaf`](https://github.com/AppFlowy-IO/AppFlowy/commit/5e9dbaf1fac27a9491ad38ab6dc52a0beede4a0d) feat: handler for deleting a word - [`9823ab5`](https://github.com/AppFlowy-IO/AppFlowy/commit/9823ab5fbb262ddeec021b3082d34a67c9362a9a) chore: typo - [`e9c5c4e`](https://github.com/AppFlowy-IO/AppFlowy/commit/e9c5c4e5404be0b3849e9cebf602b89f4ac647fc) test: ctrl and backspace to delete word - [`6038e2f`](https://github.com/AppFlowy-IO/AppFlowy/commit/6038e2f0811ec206c9ca98264645766f1f29112c) feat: add ctrl alt arrows to select words - [`e886a11`](https://github.com/AppFlowy-IO/AppFlowy/commit/e886a11efea5467ae8571c13a3750eedc2e3a314) fix: remove print statement - [`1241ee4`](https://github.com/AppFlowy-IO/AppFlowy/commit/1241ee4f07615828dd34eeeeb9bd614f418eeafe) fix: remove additional shortcut - [`4335e36`](https://github.com/AppFlowy-IO/AppFlowy/commit/4335e369057e33abe31884d20cebba0b68c4008e) fix: handle nodes empty case - [`25d6a97`](https://github.com/AppFlowy-IO/AppFlowy/commit/25d6a97ff7a494d1a95bff0397f817324b783527) test: edge cases with delete word - [`d2b9e93`](https://github.com/AppFlowy-IO/AppFlowy/commit/d2b9e93ee5bf1d0ed2f3a91aa33099fb41221eff) fix: press meta on macos ### 📊 Changes **4 files changed** (+167 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/arrow_keys_handler.dart` (+27 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/backspace_handler.dart` (+2 -2) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/shortcut_event/built_in_shortcut_events.dart` (+11 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/test/service/internal_key_event_handlers/arrow_keys_handler_test.dart` (+127 -0) </details> ### 📄 Description Solves #75 #1825 Adds the following functionalities: - [x] Ctrl + Backspace to delete a word. - [x] Ctrl + Alt + Arrow Key Left to select the left word (left to the cursor). - [x] Ctrl + Alt + Arrow Key Right to select the right word (right to the cursor). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:16:38 +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#4971
No description provided.