mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-04-30 00:00:04 +08:00
Build update
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user