mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 19:22:25 +01:00
Add "."
This commit is contained in:
@@ -467,6 +467,14 @@ liberator.Buffer = function () //{{{
|
|||||||
|
|
||||||
var modes = liberator.config.browserModes || [liberator.modes.NORMAL];
|
var modes = liberator.config.browserModes || [liberator.modes.NORMAL];
|
||||||
|
|
||||||
|
liberator.mappings.add(modes, ["."],
|
||||||
|
"Repeat the last key event",
|
||||||
|
function ()
|
||||||
|
{
|
||||||
|
if (liberator.mappings.repeat)
|
||||||
|
liberator.mappings.repeat();
|
||||||
|
});
|
||||||
|
|
||||||
liberator.mappings.add(modes, ["i", "<Insert>"],
|
liberator.mappings.add(modes, ["i", "<Insert>"],
|
||||||
"Start caret mode",
|
"Start caret mode",
|
||||||
function ()
|
function ()
|
||||||
|
|||||||
@@ -65,6 +65,10 @@ liberator.Map.prototype = {
|
|||||||
if (this.flags & liberator.Mappings.flags.ARGUMENT)
|
if (this.flags & liberator.Mappings.flags.ARGUMENT)
|
||||||
args.push(argument);
|
args.push(argument);
|
||||||
|
|
||||||
|
let self = this;
|
||||||
|
// FIXME: Kludge.
|
||||||
|
if (this.names[0] != ".")
|
||||||
|
liberator.mappings.repeat = function () self.action.apply(self, args);
|
||||||
return this.action.apply(this, args);
|
return this.action.apply(this, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user