From b52dfe12c2ffe1d12cb9da54bb766e101c75a0b8 Mon Sep 17 00:00:00 2001 From: Alexandre Moreau Date: Sun, 2 Oct 2022 17:32:09 +0200 Subject: [PATCH] feat: add doubleTildeToStrikethrough ShortcutEventHandler to built-in ShortcutEvents --- .../src/service/shortcut_event/built_in_shortcut_events.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git 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 index 827b057700..d4f5118096 100644 --- 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 @@ -257,6 +257,11 @@ List builtInShortcutEvents = [ command: 'backquote', handler: backquoteToCodeHandler, ), + ShortcutEvent( + key: 'Double tilde to strikethrough', + command: 'shift+tilde', + handler: doubleTildeToStrikethrough, + ), // 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