1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 17:32:25 +01:00
This commit is contained in:
Kris Maglione
2008-10-11 06:27:07 +00:00
parent e985d55819
commit e69cba9ff3
2 changed files with 12 additions and 0 deletions

View File

@@ -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 ()

View File

@@ -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);
} }