mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:17:59 +01:00
Fix some missed option transformations from revision 99347338113f.
This commit is contained in:
@@ -510,7 +510,7 @@ const Bookmarks = Module("bookmarks", {
|
|||||||
if (!context.filter)
|
if (!context.filter)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let engineList = (engineAliases || options["suggestengines"] || "google").split(",");
|
let engineList = (engineAliases || options["suggestengines"].join(",") || "google").split(",");
|
||||||
|
|
||||||
let completions = [];
|
let completions = [];
|
||||||
engineList.forEach(function (name) {
|
engineList.forEach(function (name) {
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ const Hints = Module("hints", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const Mode = Hints.Mode;
|
const Mode = Hints.Mode;
|
||||||
Mode.defaultValue("tags", function () function () options.hinttags);
|
Mode.defaultValue("tags", function () function () options["hinttags"]);
|
||||||
function extended() options.extendedhinttags;
|
function extended() options["extendedhinttags"];
|
||||||
function images() util.makeXPath(["img"]);
|
function images() util.makeXPath(["img"]);
|
||||||
|
|
||||||
this._hintModes = {
|
this._hintModes = {
|
||||||
@@ -128,7 +128,7 @@ const Hints = Module("hints", {
|
|||||||
if (elem instanceof HTMLInputElement && set.has(Events.editableInputs, elem.type))
|
if (elem instanceof HTMLInputElement && set.has(Events.editableInputs, elem.type))
|
||||||
return [elem.value, false];
|
return [elem.value, false];
|
||||||
else {
|
else {
|
||||||
for (let [, option] in Iterator(options["hintinputs"].split(","))) {
|
for (let [, option] in Iterator(options["hintinputs"])) {
|
||||||
if (option == "value") {
|
if (option == "value") {
|
||||||
if (elem instanceof HTMLSelectElement) {
|
if (elem instanceof HTMLSelectElement) {
|
||||||
if (elem.selectedIndex >= 0)
|
if (elem.selectedIndex >= 0)
|
||||||
@@ -718,7 +718,7 @@ const Hints = Module("hints", {
|
|||||||
* element that matches.
|
* element that matches.
|
||||||
* @param {function():string} tags The function that returns an
|
* @param {function():string} tags The function that returns an
|
||||||
* XPath expression to decide which elements can be hinted (the
|
* XPath expression to decide which elements can be hinted (the
|
||||||
* default returns options.hinttags).
|
* default returns options["hinttags"]).
|
||||||
* @optional
|
* @optional
|
||||||
*/
|
*/
|
||||||
addMode: function (mode, prompt, action, tags) {
|
addMode: function (mode, prompt, action, tags) {
|
||||||
|
|||||||
Reference in New Issue
Block a user