builtin client:change noFocus client option behavior: the defalt client window now doesn't take the focus at all, even when a text input is clicked.

This commit is contained in:
jean-emmanuel 2022-11-01 18:11:49 +01:00
parent dca6d2c889
commit 74f6c289e5
8 changed files with 48 additions and 4 deletions

View file

@ -38,7 +38,7 @@ function mouseToFastClick(event) {
DOM.dispatchEvent(e.target, name, e)
if (ENV.nofocus && !editor.enabled && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
if (!FOCUSABLE && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
console.debug('ELECTRON.BLUR()')
}