mirror of
https://github.com/AppFlowy-IO/AppFlowy
synced 2026-05-23 09:08:24 +00:00
chore: rename keyEventHandlers to shortcutEvents
This commit is contained in:
parent
2571c6b1bf
commit
5d2160b0bb
2 changed files with 4 additions and 4 deletions
|
|
@ -96,7 +96,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||
child: AppFlowyEditor(
|
||||
editorState: _editorState,
|
||||
editorStyle: const EditorStyle.defaultStyle(),
|
||||
keyEventHandlers: [
|
||||
shortcutEvents: [
|
||||
underscoreToItalicEvent,
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue