prevent insubstantial LAST_USED_INPUT on page focus

This commit is contained in:
Chic-Tweetz 2026-06-21 14:30:52 +01:00
parent 2922ded7bc
commit b8c8c4aebe

View file

@ -553,7 +553,7 @@ function onPageFocus(elem: HTMLElement): boolean {
elem = elem.shadowRoot
? (elem.shadowRoot.activeElement as HTMLElement)
: elem
if (isTextEditable(elem)) {
if (isTextEditable(elem) && isSubstantial(elem)) {
LAST_USED_INPUT = elem
}
const setting =