Build update

This commit is contained in:
Francisco Hodge
2020-05-05 23:58:54 +00:00
parent 25dc7b620a
commit f33e3498a1
5 changed files with 17 additions and 17 deletions
+12 -12
View File
@@ -329,18 +329,18 @@ class SimpleKeyboard {
if (!this.options.disableButtonHold) {
this.holdTimeout = setTimeout(() => {
if (
this.isMouseHold &&
// TODO: This needs to be configurable through options
((!button.includes("{") && !button.includes("}")) ||
button === "{delete}" ||
button === "{backspace}" ||
button === "{bksp}" ||
button === "{space}" ||
button === "{tab}") ||
button === "{arrowright}" ||
button === "{arrowleft}" ||
button === "{arrowup}" ||
button === "{arrowdown}"
(this.isMouseHold &&
// TODO: This needs to be configurable through options
((!button.includes("{") && !button.includes("}")) ||
button === "{delete}" ||
button === "{backspace}" ||
button === "{bksp}" ||
button === "{space}" ||
button === "{tab}")) ||
button === "{arrowright}" ||
button === "{arrowleft}" ||
button === "{arrowup}" ||
button === "{arrowdown}"
) {
if (this.options.debug) console.log("Button held:", button);