Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

Merge remote-tracking branch 'origin/main' into tekdel/main

Lucas.Xue9c0956c51d4
diff --cc frontend/app_flowy/packages/appflowy_editor/lib/src/service/shortcut_event/built_in_shortcut_events.dart
index 328b1cbc38,21e3e90b0d..7cfb7288ba
--- a/frontend/app_flowy/packages/appflowy_editor/lib/src/service/shortcut_event/built_in_shortcut_events.dart
+++ b/frontend/app_flowy/packages/appflowy_editor/lib/src/service/shortcut_event/built_in_shortcut_events.dart
@@@ -253,16 -252,7 +253,17 @@@ List<ShortcutEvent> builtInShortcutEven
command: 'tab',
handler: tabHandler,
),
+ ShortcutEvent(
+ key: 'Double stars to bold',
+ command: 'shift+asterisk',
+ handler: doubleAsterisksToBold,
+ ),
+ ShortcutEvent(
+ key: 'Double underscores to bold',
+ command: 'shift+underscore',
+ handler: doubleUnderscoresToBold,
+ ),
+ ShortcutEvent(
key: 'Backquote to code',
command: 'backquote',
handler: backquoteToCodeHandler,
diff --cc frontend/app_flowy/packages/appflowy_editor/test/infra/test_raw_key_event.dart
index c9ff4e3222,81fb46dff9..5102407e1b
--- a/frontend/app_flowy/packages/appflowy_editor/test/infra/test_raw_key_event.dart
+++ b/frontend/app_flowy/packages/appflowy_editor/test/infra/test_raw_key_event.dart
@@@ -139,12 -139,9 +139,15 @@@ extension on LogicalKeyboardKey
if (this == LogicalKeyboardKey.keyZ) {
return PhysicalKeyboardKey.keyZ;
}
+ if (this == LogicalKeyboardKey.asterisk) {
+ return PhysicalKeyboardKey.digit8;
+ }
+ if (this == LogicalKeyboardKey.underscore) {
+ return PhysicalKeyboardKey.minus;
+ }
+ if (this == LogicalKeyboardKey.tilde) {
+ return PhysicalKeyboardKey.backquote;
+ }
throw UnimplementedError();
}
}