WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 9b85e5d

Browse files
committed
update comment
1 parent e1e797f commit 9b85e5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web_src/js/features/comp/EditorMarkdown.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,12 @@ function handleNewline(textarea: HTMLTextAreaElement, e: KeyboardEvent) {
194194
triggerEditorContentChanged(textarea);
195195
}
196196

197+
// Keys that act as dead keys will not work because the spec dictates that such keys are
198+
// emitted as `Dead` in e.key instead of the actual key.
197199
const pairs: Record<string, string> = {
198200
"'": "'",
199201
'"': '"',
200-
'`': '`', // will not work on keyboard layouts with it as dead key
202+
'`': '`',
201203
'(': ')',
202204
'[': ']',
203205
'{': '}',

0 commit comments

Comments
 (0)