editor: misc
This commit is contained in:
parent
e754cc70ed
commit
a2d29f86b1
1 changed files with 4 additions and 1 deletions
|
|
@ -203,7 +203,10 @@ class Editor {
|
|||
|
||||
handleKeyboard(combo, e){
|
||||
|
||||
if (this.inspector.helpModalOpened || e && e.target && (e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA' || e.target.tagName === 'SELECT')) return
|
||||
if (
|
||||
this.inspector.helpModalOpened ||
|
||||
e && e.target && e.target.tagName.match(/INPUT|TEXTAREA|SELECT/)
|
||||
) return
|
||||
|
||||
if (e) e.preventDefault()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue