mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 16:22:27 +01:00
Add "."
This commit is contained in:
@@ -467,6 +467,14 @@ liberator.Buffer = function () //{{{
|
||||
|
||||
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>"],
|
||||
"Start caret mode",
|
||||
function ()
|
||||
|
||||
@@ -65,6 +65,10 @@ liberator.Map.prototype = {
|
||||
if (this.flags & liberator.Mappings.flags.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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user