bypass client option nofocus=1 when the editor is enabled
This commit is contained in:
parent
32b21bc6e6
commit
fd9f703bcf
2 changed files with 4 additions and 2 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
- bug fixes
|
||||
- matrix: property resolution issue with object/array items in `props`
|
||||
- bypass client option `nofocus=1` when the editor is enabled
|
||||
|
||||
- misc
|
||||
- updated midi bridge: provide more information when loading fails; may fix some compatibility issue on windows
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
const iOS = require('../ui/ios')
|
||||
const editor = require('../editor')
|
||||
const macOs = (navigator.platform || '').match('Mac')
|
||||
|
||||
var longTouchTimer = false,
|
||||
|
|
@ -37,7 +38,7 @@ function mouseToFastClick(event) {
|
|||
|
||||
DOM.dispatchEvent(e.target, name, e)
|
||||
|
||||
if (ENV.nofocus && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
|
||||
if (ENV.nofocus && !editor.enabled && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
|
||||
console.debug('ELECTRON.BLUR()')
|
||||
}
|
||||
|
||||
|
|
@ -67,7 +68,7 @@ function touchToFastClick(event) {
|
|||
|
||||
}, 600)
|
||||
|
||||
if (ENV.nofocus && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
|
||||
if (ENV.nofocus && !editor.enabled && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
|
||||
console.debug('ELECTRON.BLUR()')
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue