feat: add doubleTildeToStrikethrough ShortcutEventHandler to built-in ShortcutEvents

This commit is contained in:
Alexandre Moreau 2022-10-02 17:32:09 +02:00
parent be5123ca21
commit b52dfe12c2

View File

@ -257,6 +257,11 @@ List<ShortcutEvent> 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