scripting: calling setFocus() without if now unfocuses active element

This commit is contained in:
jean-emmanuel 2025-12-14 14:41:05 +01:00
parent 42b71ef6fc
commit 31f4119442
3 changed files with 4 additions and 1 deletions

View file

@ -452,6 +452,8 @@ class ScriptVm extends Vm {
if (widgets.length) {
if (widgets[0].focus) widgets[0].focus()
}
} else if (document.activeElement) {
document.activeElement.blur()
}
// built-in client only: electron will call window.focus()