1
0
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:
Kris Maglione
2008-11-25 02:53:01 +00:00
parent ce0542bf66
commit a0c9d445ba
2 changed files with 124 additions and 109 deletions

View File

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