diff --git a/src/client/editor/index.js b/src/client/editor/index.js index 5526a39a..2fc74755 100644 --- a/src/client/editor/index.js +++ b/src/client/editor/index.js @@ -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()