|
@@ -4,6 +4,7 @@ import 'package:appflowy_editor/src/service/internal_key_event_handlers/arrow_ke
|
|
import 'package:appflowy_editor/src/service/internal_key_event_handlers/backspace_handler.dart';
|
|
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/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/enter_without_shift_in_text_node_handler.dart';
|
|
|
|
+import 'package:appflowy_editor/src/service/internal_key_event_handlers/exit_editing_mode_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/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/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/redo_undo_handler.dart';
|
|
@@ -276,6 +277,11 @@ List<ShortcutEvent> builtInShortcutEvents = [
|
|
command: 'shift+parenthesis right',
|
|
command: 'shift+parenthesis right',
|
|
handler: markdownLinkOrImageHandler,
|
|
handler: markdownLinkOrImageHandler,
|
|
),
|
|
),
|
|
|
|
+ ShortcutEvent(
|
|
|
|
+ key: 'Exit editing mode',
|
|
|
|
+ command: 'escape',
|
|
|
|
+ handler: exitEditingModeEventHandler,
|
|
|
|
+ ),
|
|
// https://github.com/flutter/flutter/issues/104944
|
|
// https://github.com/flutter/flutter/issues/104944
|
|
// Workaround: Using space editing on the web platform often results in errors,
|
|
// 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
|
|
// so adding a shortcut event to handle the space input instead of using the
|