implement / fix combo timeout
This commit is contained in:
parent
c13b123423
commit
bb1cca0433
2 changed files with 2 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
"timestamp": "DD.MM.YYYY HH:mm:ss:SS"
|
"timestamp": "DD.MM.YYYY HH:mm:ss:SS"
|
||||||
},
|
},
|
||||||
"combos": {
|
"combos": {
|
||||||
"delay": 5000
|
"delay": 1000
|
||||||
},
|
},
|
||||||
"watchers": [
|
"watchers": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -239,13 +239,11 @@ class Keyfilter {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
hasComboTimedOut() {
|
hasComboTimedOut() {
|
||||||
return false;
|
|
||||||
return global.config?.combos?.delay !== undefined &&
|
return global.config?.combos?.delay !== undefined &&
|
||||||
this.currentCombo?.timestamp !== undefined &&
|
this.currentCombo?.timestamp !== undefined &&
|
||||||
new Date().getTime() - this.currentCombo.timestamp > global.config?.combos?.dela;
|
new Date().getTime() - this.currentCombo.timestamp > global.config?.combos?.delay;
|
||||||
}
|
}
|
||||||
resetCurrentCombo() {
|
resetCurrentCombo() {
|
||||||
console.debug('resetting current combo...');
|
|
||||||
this.currentCombo = undefined;
|
this.currentCombo = undefined;
|
||||||
}
|
}
|
||||||
isValid() {
|
isValid() {
|
||||||
|
|
Loading…
Reference in a new issue