[PR #1817] [MERGED] [FR] Shortcut for toggling checkbox #4956

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/1817
Author: @MayurSMahajan
Created: 2/7/2023
Status: Merged
Merged: 2/9/2023
Merged by: @LucasXu0

Base: mainHead: fr_checkbox_toggle_shortcut_1762


📝 Commits (9)

  • 4d825b8 feat: shortcut for toggling checkbox
  • 5248173 refactor: separate checkbox event handler
  • 26e3d5d test: chechbox event handler
  • e13fa01 chore: remove unused imports
  • 5385068 refactor: command to ctrl and enter
  • fd9a24b refactor: handler to use transactions
  • 484b84d test: checkbox event handler
  • 400ae0b chore: remove unused import
  • 21fec14 refactor: simplify handler logic

📊 Changes

4 files changed (+290 additions, -0 deletions)

View changed files

frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/checkbox_event_handler.dart (+38 -0)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/shortcut_event/built_in_shortcut_events.dart (+8 -0)
📝 frontend/app_flowy/packages/appflowy_editor/test/infra/test_raw_key_event.dart (+3 -0)
frontend/app_flowy/packages/appflowy_editor/test/service/internal_key_event_handlers/checkbox_event_handler_test.dart (+241 -0)

📄 Description

Solves #1762

Users can now use the key combination: Ctrl+Enter on Windows and Linux to quickly on/off a checkbox in AppFlowy. Mac Users have to press Meta+Enter in order to achieve the same.

This also works with multiple checkboxes. Thus as a user, you can select multiple todos and then press Ctrl+Enter to toggle them.


🔄 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/1817 **Author:** [@MayurSMahajan](https://github.com/MayurSMahajan) **Created:** 2/7/2023 **Status:** ✅ Merged **Merged:** 2/9/2023 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `fr_checkbox_toggle_shortcut_1762` --- ### 📝 Commits (9) - [`4d825b8`](https://github.com/AppFlowy-IO/AppFlowy/commit/4d825b8e462117eaad9974da7ab1208177606d42) feat: shortcut for toggling checkbox - [`5248173`](https://github.com/AppFlowy-IO/AppFlowy/commit/52481735a0afc49e1feda2025087e94b58a12870) refactor: separate checkbox event handler - [`26e3d5d`](https://github.com/AppFlowy-IO/AppFlowy/commit/26e3d5da9cb06cb18003b572015896700836d287) test: chechbox event handler - [`e13fa01`](https://github.com/AppFlowy-IO/AppFlowy/commit/e13fa01520816d31fa90edf947de5cd58d4ea4d0) chore: remove unused imports - [`5385068`](https://github.com/AppFlowy-IO/AppFlowy/commit/5385068415f05bb096bef2c43c3e14e45632d70e) refactor: command to ctrl and enter - [`fd9a24b`](https://github.com/AppFlowy-IO/AppFlowy/commit/fd9a24b3a289c32f6af117b191586f5a9cf31206) refactor: handler to use transactions - [`484b84d`](https://github.com/AppFlowy-IO/AppFlowy/commit/484b84d8edf80e3956f3821374b373ae6dfd7788) test: checkbox event handler - [`400ae0b`](https://github.com/AppFlowy-IO/AppFlowy/commit/400ae0b7e5a9cb3b29a62d650bb3461fc158381a) chore: remove unused import - [`21fec14`](https://github.com/AppFlowy-IO/AppFlowy/commit/21fec147e285bd5285185c8faf36970776131906) refactor: simplify handler logic ### 📊 Changes **4 files changed** (+290 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/checkbox_event_handler.dart` (+38 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/shortcut_event/built_in_shortcut_events.dart` (+8 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/test/infra/test_raw_key_event.dart` (+3 -0) ➕ `frontend/app_flowy/packages/appflowy_editor/test/service/internal_key_event_handlers/checkbox_event_handler_test.dart` (+241 -0) </details> ### 📄 Description Solves #1762 Users can now use the key combination: **Ctrl+Enter** on Windows and Linux to quickly on/off a checkbox in AppFlowy. Mac Users have to press **Meta+Enter** in order to achieve the same. This also works with multiple checkboxes. Thus as a user, you can select multiple todos and then press Ctrl+Enter to toggle them. --- <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:34 +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#4956
No description provided.