1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 15:04:13 +01:00

Fix <C-{o,i}> and {H,L} keys to work with the with (liberator) change

This commit is contained in:
Daniel Bainton
2008-10-13 10:23:22 +00:00
parent b69fdd4d54
commit f36d6a4133

View File

@@ -584,22 +584,22 @@ with (liberator) liberator.History = function () //{{{
mappings.add(myModes,
["<C-o>"], "Go to an older position in the jump list",
function (count) { history.stepTo(-(count > 1 ? count : 1)); },
function (count) { liberator.history.stepTo(-(count > 1 ? count : 1)); },
{ flags: Mappings.flags.COUNT });
mappings.add(myModes,
["<C-i>"], "Go to a newer position in the jump list",
function (count) { history.stepTo(count > 1 ? count : 1); },
function (count) { liberator.history.stepTo(count > 1 ? count : 1); },
{ flags: Mappings.flags.COUNT });
mappings.add(myModes,
["H", "<A-Left>", "<M-Left>"], "Go back in the browser history",
function (count) { history.stepTo(-(count > 1 ? count : 1)); },
function (count) { liberator.history.stepTo(-(count > 1 ? count : 1)); },
{ flags: Mappings.flags.COUNT });
mappings.add(myModes,
["L", "<A-Right>", "<M-Right>"], "Go forward in the browser history",
function (count) { history.stepTo(count > 1 ? count : 1); },
function (count) { liberator.history.stepTo(count > 1 ? count : 1); },
{ flags: Mappings.flags.COUNT });
/////////////////////////////////////////////////////////////////////////////}}}
@@ -631,7 +631,7 @@ with (liberator) liberator.History = function () //{{{
}
else
{
history.stepTo(count > 0 ? -1 * count : -1);
liberator.history.stepTo(count > 0 ? -1 * count : -1);
}
}
},
@@ -679,7 +679,7 @@ with (liberator) liberator.History = function () //{{{
}
else
{
history.stepTo(count > 0 ? count : 1);
liberator.history.stepTo(count > 0 ? count : 1);
}
}
},