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

Also update hints on scroll events.

This commit is contained in:
Kris Maglione
2010-10-09 20:15:24 -04:00
parent d0e2262565
commit d6e62a728d
2 changed files with 8 additions and 3 deletions

View File

@@ -38,6 +38,9 @@ const Hints = Module("hints", {
self._showHints(); self._showHints();
} }
}); });
let appContent = document.getElementById("appcontent");
if (appContent)
events.addSessionListener(appContent, "scroll", this._resizeTimer.closure.tell, false);
const Mode = Hints.Mode; const Mode = Hints.Mode;
Mode.defaultValue("tags", function () function () options["hinttags"]); Mode.defaultValue("tags", function () function () options["hinttags"]);
@@ -91,8 +94,10 @@ const Hints = Module("hints", {
this._activeTimeout = null; this._activeTimeout = null;
}, },
__reset: function () { __reset: function () {
if (!this._usedTabKey) if (!this._usedTabKey) {
this._hintNumber = 0; this._hintNumber = 0;
this._updateStatusline();
}
}, },
/** /**
@@ -480,7 +485,7 @@ const Hints = Module("hints", {
this._removeHints(timeout); this._removeHints(timeout);
} }
let n = 3; let n = 5;
(function next() { (function next() {
this._setClass(elem, n % 2); this._setClass(elem, n % 2);
if (n--) if (n--)

View File

@@ -537,7 +537,7 @@ const JavaScript = Module("javascript", {
args.push(key + string); args.push(key + string);
let compl = function (context, obj) { let compl = function (context, obj) {
let res = completer.call(self, context, funcName, obj, args); let res = completer.call(self, context, funcName, obj.obj, args);
if (res) if (res)
context.completions = res; context.completions = res;
}; };