1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 04:07:58 +01:00

added google suggestions to tab completion

This commit is contained in:
Martin Stubenschrott
2008-03-31 13:22:47 +00:00
parent 2750f36032
commit 19059a46cb
5 changed files with 25 additions and 3 deletions

View File

@@ -903,8 +903,9 @@ liberator.Events = function () //{{{
// dump("=+++++++++=\n" + liberator.util.objectToString(event.target) + "\n")
// dump (elem + ": " + win + "\n");//" - target: " + event.target + " - origtarget: " + event.originalTarget + " - expltarget: " + event.explicitOriginalTarget + "\n");
if (elem && elem instanceof HTMLInputElement &&
(elem.type.toLowerCase() == "text" || elem.type.toLowerCase() == "password"))
if (win == window.content && // don't store it if e.g. the command line has focus
elem && elem instanceof HTMLInputElement &&
(elem.type.toLowerCase() == "text" || elem.type.toLowerCase() == "password"))
{
this.wantsModeReset = false;
liberator.mode = liberator.modes.INSERT;