fix: exclude hyphen in code block (#4183)

This commit is contained in:
Yijing Huang 2023-12-20 18:32:01 -07:00 committed by GitHub
parent 366e28752c
commit 890285bb7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ final CharacterShortcutEvent enterInCodeBlock = CharacterShortcutEvent(
/// - mobile
///
final List<CharacterShortcutEvent> ignoreKeysInCodeBlock =
[' ', '/', '_', '*', '~']
[' ', '/', '_', '*', '~', '-']
.map(
(e) => CharacterShortcutEvent(
key: 'press enter in code block',