script widget: sometimes e.preventDefault is not defined
This commit is contained in:
parent
c554a23c99
commit
dd8da47085
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ class ScriptWidget extends Widget {
|
|||
|
||||
if (e.type === 'keydown' && !this.getProp('keyRepeat')) e.preventRepeat()
|
||||
|
||||
e.preventDefault()
|
||||
if (e.preventDefault) e.preventDefault()
|
||||
|
||||
this.scripts.onKeyboard.run({
|
||||
type: e.type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue