mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-02 23:04:13 +01:00
Replace weird mystery meat args of mapping actions with a proper object.
This commit is contained in:
@@ -274,22 +274,22 @@ var History = Module("history", {
|
||||
|
||||
mappings.add(myModes,
|
||||
["<C-o>"], "Go to an older position in the jump list",
|
||||
function (count) { history.stepTo(-Math.max(count, 1)); },
|
||||
function (args) { history.stepTo(-Math.max(args.count, 1)); },
|
||||
{ count: true });
|
||||
|
||||
mappings.add(myModes,
|
||||
["<C-i>"], "Go to a newer position in the jump list",
|
||||
function (count) { history.stepTo(Math.max(count, 1)); },
|
||||
function (args) { history.stepTo(Math.max(args.count, 1)); },
|
||||
{ count: true });
|
||||
|
||||
mappings.add(myModes,
|
||||
["H", "<A-Left>", "<M-Left>"], "Go back in the browser history",
|
||||
function (count) { history.stepTo(-Math.max(count, 1)); },
|
||||
function (args) { history.stepTo(-Math.max(args.count, 1)); },
|
||||
{ count: true });
|
||||
|
||||
mappings.add(myModes,
|
||||
["L", "<A-Right>", "<M-Right>"], "Go forward in the browser history",
|
||||
function (count) { history.stepTo(Math.max(count, 1)); },
|
||||
function (args) { history.stepTo(Math.max(args.count, 1)); },
|
||||
{ count: true });
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user