mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Merge branch 'preview-fixes' into master-cdn
This commit is contained in:
commit
342c6a590f
@ -49,7 +49,10 @@ export const loadKeyBindings = lodash.once((bindings: KeyBinding[]) => {
|
||||
const hasElementFocus = !([document.body, null] as (Element | null)[]).includes(
|
||||
getActiveElement(),
|
||||
)
|
||||
if (binding.action.ignoreFocus !== false && hasElementFocus) {
|
||||
if (
|
||||
(binding.action.ignoreFocus !== false || binding.action.ignoreTyping !== false) &&
|
||||
hasElementFocus
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user