Setting preventMouseDownDefault false by default

This commit is contained in:
Francisco Hodge
2018-11-25 12:03:40 -05:00
parent 682660d638
commit 97b475a2b7
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ class SimpleKeyboard {
this.options.layoutName = this.options.layoutName || "default";
this.options.theme = this.options.theme || "hg-theme-default";
this.options.inputName = this.options.inputName || "default";
this.options.preventMouseDownDefault = this.options.preventMouseDownDefault === false ? false : true;
this.options.preventMouseDownDefault = this.options.preventMouseDownDefault || false;
/**
* @type {object} Classes identifying loaded plugins