[PR #2101] [MERGED] feat: trigger shortcut event by character #5092

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/2101
Author: @LucasXu0
Created: 3/24/2023
Status: Merged
Merged: 3/24/2023
Merged by: @LucasXu0

Base: mainHead: feature/shortcut_event


📝 Commits (1)

  • 92eee8d feat: trigger shortcut event by character

📊 Changes

4 files changed (+66 additions, -40 deletions)

View changed files

📝 frontend/appflowy_flutter/packages/appflowy_editor/lib/src/service/keyboard_service.dart (+8 -1)
📝 frontend/appflowy_flutter/packages/appflowy_editor/lib/src/service/shortcut_event/built_in_shortcut_events.dart (+2 -2)
📝 frontend/appflowy_flutter/packages/appflowy_editor/lib/src/service/shortcut_event/shortcut_event.dart (+23 -4)
📝 frontend/appflowy_flutter/pubspec.lock (+33 -33)

📄 Description

  • Define a new parameter called character to shortcut_event.
  • Trigger the shortcut by checking whether the character is the same as the character of the RawKeyEvent in onKey callback,

🔄 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/2101 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 3/24/2023 **Status:** ✅ Merged **Merged:** 3/24/2023 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `feature/shortcut_event` --- ### 📝 Commits (1) - [`92eee8d`](https://github.com/AppFlowy-IO/AppFlowy/commit/92eee8d7ac4ff88c750d404402b23bddf3988b66) feat: trigger shortcut event by character ### 📊 Changes **4 files changed** (+66 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/packages/appflowy_editor/lib/src/service/keyboard_service.dart` (+8 -1) 📝 `frontend/appflowy_flutter/packages/appflowy_editor/lib/src/service/shortcut_event/built_in_shortcut_events.dart` (+2 -2) 📝 `frontend/appflowy_flutter/packages/appflowy_editor/lib/src/service/shortcut_event/shortcut_event.dart` (+23 -4) 📝 `frontend/appflowy_flutter/pubspec.lock` (+33 -33) </details> ### 📄 Description * Define a new parameter called `character` to `shortcut_event`. * Trigger the shortcut by checking whether the character is the same as the character of the `RawKeyEvent` in `onKey` callback, --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:17:11 +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#5092
No description provided.