mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:22:28 +01:00
Dont let completion <Tab> presses backlog.
This commit is contained in:
@@ -89,6 +89,7 @@ const util = { //{{{
|
||||
/* minInterval is the time between the completion of the command and the next firing. */
|
||||
this.doneAt = Date.now() + minInterval;
|
||||
|
||||
liberator.dump({notify: "notify"});
|
||||
try
|
||||
{
|
||||
callback(this.arg);
|
||||
@@ -111,7 +112,7 @@ const util = { //{{{
|
||||
if (now > this.doneAt && this.doneAt > -1)
|
||||
timeout = 0;
|
||||
else if (this.latest)
|
||||
timeout = minInterval;
|
||||
timeout = Math.min(timeout, this.latest - now);
|
||||
else
|
||||
this.latest = now + maxInterval;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user