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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: rename keyEventHandlers to shortcutEvents
Lucas.Xu5d2160b0bb3e
diff --git a/frontend/app_flowy/packages/appflowy_editor/example/lib/main.dart b/frontend/app_flowy/packages/appflowy_editor/example/lib/main.dartindex 80e1813e89..921628ff21 100644--- a/frontend/app_flowy/packages/appflowy_editor/example/lib/main.dart+++ b/frontend/app_flowy/packages/appflowy_editor/example/lib/main.dart@@ -96,7 +96,7 @@ class _MyHomePageState extends State<MyHomePage> {child: AppFlowyEditor(editorState: _editorState,editorStyle: const EditorStyle.defaultStyle(),- keyEventHandlers: [+ shortcutEvents: [underscoreToItalicEvent,],),diff --git a/frontend/app_flowy/packages/appflowy_editor/lib/src/service/editor_service.dart b/frontend/app_flowy/packages/appflowy_editor/lib/src/service/editor_service.dartindex 9465d44de4..ba9c45732b 100644--- a/frontend/app_flowy/packages/appflowy_editor/lib/src/service/editor_service.dart+++ b/frontend/app_flowy/packages/appflowy_editor/lib/src/service/editor_service.dart@@ -36,7 +36,7 @@ class AppFlowyEditor extends StatefulWidget {Key? key,required this.editorState,this.customBuilders = const {},- this.keyEventHandlers = const [],+ this.shortcutEvents = const [],this.selectionMenuItems = const [],this.editorStyle = const EditorStyle.defaultStyle(),}) : super(key: key);@@ -47,7 +47,7 @@ class AppFlowyEditor extends StatefulWidget {final NodeWidgetBuilders customBuilders;/// Keyboard event handlers.- final List<ShortcutEvent> keyEventHandlers;+ final List<ShortcutEvent> shortcutEvents;final List<SelectionMenuItem> selectionMenuItems;@@ -96,7 +96,7 @@ class _AppFlowyEditorState extends State<AppFlowyEditor> {key: editorState.service.keyboardServiceKey,shortcutEvents: [...builtInShortcutEvents,- ...widget.keyEventHandlers,+ ...widget.shortcutEvents,],editorState: editorState,child: FlowyToolbar(