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

View File

@ -1,6 +1,6 @@
/*!
*
* simple-keyboard v2.29.17
* simple-keyboard v2.29.18
* https://github.com/hodgef/simple-keyboard
*
* Copyright (c) Francisco Hodge (https://github.com/hodgef)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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);