Detect macOS composing (fix #2197)

This commit is contained in:
the1812 2021-09-07 21:08:13 +08:00
parent 25a47239cc
commit e29ac60f22
2 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -338,6 +338,9 @@ export class SearchBox extends NavbarComponent {
}
})
keywordInput.addEventListener('keydown', e => {
if (e.isComposing) {
return
}
if (e.key === 'ArrowDown' && searchList.items.length > 0) {
e.preventDefault();
e.stopImmediatePropagation();