1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-28 01:45:47 +01:00

added search suggestions (thanks to M.Terada)

This commit is contained in:
Martin Stubenschrott
2008-04-23 18:00:52 +00:00
parent 545a0ffb25
commit b9327b6bf2
7 changed files with 89 additions and 20 deletions

View File

@@ -476,7 +476,10 @@ liberator.Events = function () //{{{
dump("waited: " + (now - then) + " ms\n");
if (liberator.buffer.loaded > 0)
{
liberator.sleep(250);
break;
}
else
liberator.echo("Waiting for page to load...");
}
@@ -488,6 +491,10 @@ liberator.Events = function () //{{{
liberator.echoerr("Page did not load completely in " + ms + " milliseconds. Macro stopped.");
dump("done waiting: " + ret + "\n");
// sometimes the input widget had focus when replaying a macro
// maybe this call should be moved somewhere else?
// liberator.focusContent(true);
return ret;
}
@@ -784,8 +791,13 @@ liberator.Events = function () //{{{
evt.noremap = noremap;
elem.dispatchEvent(evt);
// stop feeding keys if page loading failed
if (liberator.modes.isReplaying && !waitForPageLoaded())
return;
if (liberator.modes.isReplaying)
{
if (!waitForPageLoaded())
return;
// else // a short break between keys often helps
// liberator.sleep(50);
}
}
return true;
},