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 branch 'main' into main

Lucas.Xub8cbbf745490
diff --cc frontend/app_flowy/packages/appflowy_editor/lib/src/service/shortcut_event/built_in_shortcut_events.dart
index 9ad249800d,827b057700..328b1cbc38
--- 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
@@@ -4,7 -4,7 +4,8 @@@ import 'package:appflowy_editor/src/ser
import 'package:appflowy_editor/src/service/internal_key_event_handlers/backspace_handler.dart';
import 'package:appflowy_editor/src/service/internal_key_event_handlers/copy_paste_handler.dart';
import 'package:appflowy_editor/src/service/internal_key_event_handlers/enter_without_shift_in_text_node_handler.dart';
+import 'package:appflowy_editor/src/service/internal_key_event_handlers/markdown_syntax_to_styled_text_handler.dart';
+ import 'package:appflowy_editor/src/service/internal_key_event_handlers/markdown_syntax_to_styled_text.dart';
import 'package:appflowy_editor/src/service/internal_key_event_handlers/page_up_down_handler.dart';
import 'package:appflowy_editor/src/service/internal_key_event_handlers/redo_undo_handler.dart';
import 'package:appflowy_editor/src/service/internal_key_event_handlers/select_all_handler.dart';
@@@ -251,13 -253,18 +254,27 @@@ List<ShortcutEvent> builtInShortcutEven
handler: tabHandler,
),
ShortcutEvent(
+ key: 'Double stars to bold',
+ command: 'shift+asterisk',
+ handler: doubleAsterisksToBold,
+ ),
+ ShortcutEvent(
+ key: 'Double underscores to bold',
+ command: 'shift+underscore',
+ handler: doubleUnderscoresToBold,
+ ),
+ key: 'Backquote to code',
+ command: 'backquote',
+ handler: backquoteToCodeHandler,
+ ),
+ // https://github.com/flutter/flutter/issues/104944
+ // Workaround: Using space editing on the web platform often results in errors,
+ // so adding a shortcut event to handle the space input instead of using the
+ // `input_service`.
+ if (kIsWeb)
+ ShortcutEvent(
+ key: 'Space on the Web',
+ command: 'space',
+ handler: spaceOnWebHandler,
+ ),
];