mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Detect macOS composing (fix #2197)
This commit is contained in:
parent
25a47239cc
commit
e29ac60f22
2
min/custom-navbar-search-box.min.js
vendored
2
min/custom-navbar-search-box.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user