From bc420bb60caf9b971772d421d4a9f9c6f7bd1833 Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Sat, 24 Nov 2018 20:11:48 -0500 Subject: [PATCH] Adding ternary condition for preventMouseDownDefault --- src/lib/components/Keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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