From 890285bb7befd30faefbb72f8a998386bd3fc5d9 Mon Sep 17 00:00:00 2001 From: Yijing Huang Date: Wed, 20 Dec 2023 18:32:01 -0700 Subject: [PATCH] fix: exclude hyphen in code block (#4183) --- .../editor_plugins/code_block/code_block_shortcut_event.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_shortcut_event.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_shortcut_event.dart index 1326886148..15fe53297f 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_shortcut_event.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_shortcut_event.dart @@ -36,7 +36,7 @@ final CharacterShortcutEvent enterInCodeBlock = CharacterShortcutEvent( /// - mobile /// final List ignoreKeysInCodeBlock = - [' ', '/', '_', '*', '~'] + [' ', '/', '_', '*', '~', '-'] .map( (e) => CharacterShortcutEvent( key: 'press enter in code block',