mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 07:58:00 +01:00
Added the count arugument at Mode#action.
http://vimperator.org/trac/ticket/62
This commit is contained in:
@@ -42,6 +42,7 @@ function Hints() //{{{
|
||||
var hintNumber = 0; // only the numerical part of the hint
|
||||
var usedTabKey = false; // when we used <Tab> to select an element
|
||||
var prevInput = ""; // record previous user input type, "text" || "number"
|
||||
var extendedhintCount; // for the count arugument of Mode#action (extended hint only)
|
||||
|
||||
// hints[] = [elem, text, span, imgspan, elem.style.backgroundColor, elem.style.color]
|
||||
var pageHints = [];
|
||||
@@ -335,7 +336,7 @@ function Hints() //{{{
|
||||
setTimeout(function () {
|
||||
if (modes.extended & modes.HINTS)
|
||||
modes.reset();
|
||||
hintMode.action(elem, elem.href || "");
|
||||
hintMode.action(elem, elem.href || "", extendedhintCount);
|
||||
}, timeout);
|
||||
return true;
|
||||
}
|
||||
@@ -574,7 +575,8 @@ function Hints() //{{{
|
||||
|
||||
mappings.add(myModes, [";"],
|
||||
"Start an extended hint mode",
|
||||
function (arg) {
|
||||
function (count) {
|
||||
extendedhintCount = count;
|
||||
commandline.input(";", function (arg) { setTimeout(function () hints.show(arg), 0) },
|
||||
{
|
||||
promptHighlight: "Normal",
|
||||
@@ -583,8 +585,7 @@ function Hints() //{{{
|
||||
},
|
||||
onChange: function () { modes.pop() }
|
||||
});
|
||||
});
|
||||
//{ flags: Mappings.flags.ARGUMENT });
|
||||
}, { flags: Mappings.flags.COUNT });
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
////////////////////// PUBLIC SECTION //////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user