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