Merge branch 'preview-fixes' into master-cdn

This commit is contained in:
the1812 2025-02-26 23:13:39 +08:00
commit 342c6a590f

View File

@ -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
}