diff --git a/src/lib/components/Keyboard.js b/src/lib/components/Keyboard.js index e03d09b5..779aa6b2 100644 --- a/src/lib/components/Keyboard.js +++ b/src/lib/components/Keyboard.js @@ -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 || true; + this.options.preventMouseDownDefault = this.options.preventMouseDownDefault === false ? false : true; /** * @type {object} Classes identifying loaded plugins