Merge branch 'preview-fixes' into preview-features

This commit is contained in:
the1812 2025-02-26 23:09:44 +08:00
commit fad450b354

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
}