mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-01 02:53:07 +08:00
Build update
This commit is contained in:
parent
25dc7b620a
commit
f33e3498a1
@ -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
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user