update comment

pull/36121/head
silverwind 2025-12-10 02:17:03 +07:00
parent e1e797f222
commit 9b85e5d66b
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
1 changed files with 3 additions and 1 deletions

@ -194,10 +194,12 @@ function handleNewline(textarea: HTMLTextAreaElement, e: KeyboardEvent) {
triggerEditorContentChanged(textarea);
}
// Keys that act as dead keys will not work because the spec dictates that such keys are
// emitted as `Dead` in e.key instead of the actual key.
const pairs: Record<string, string> = {
"'": "'",
'"': '"',
'`': '`', // will not work on keyboard layouts with it as dead key
'`': '`',
'(': ')',
'[': ']',
'{': '}',