scripting: calling setFocus() without if now unfocuses active element
This commit is contained in:
parent
42b71ef6fc
commit
31f4119442
3 changed files with 4 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue