mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 14:27:59 +01:00
Also update hints on scroll events.
This commit is contained in:
@@ -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--)
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user