mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-14 20:03:32 +01:00
Fix <C-{o,i}> and {H,L} keys to work with the with (liberator) change
This commit is contained in:
@@ -584,22 +584,22 @@ with (liberator) liberator.History = function () //{{{
|
|||||||
|
|
||||||
mappings.add(myModes,
|
mappings.add(myModes,
|
||||||
["<C-o>"], "Go to an older position in the jump list",
|
["<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 });
|
{ flags: Mappings.flags.COUNT });
|
||||||
|
|
||||||
mappings.add(myModes,
|
mappings.add(myModes,
|
||||||
["<C-i>"], "Go to a newer position in the jump list",
|
["<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 });
|
{ flags: Mappings.flags.COUNT });
|
||||||
|
|
||||||
mappings.add(myModes,
|
mappings.add(myModes,
|
||||||
["H", "<A-Left>", "<M-Left>"], "Go back in the browser history",
|
["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 });
|
{ flags: Mappings.flags.COUNT });
|
||||||
|
|
||||||
mappings.add(myModes,
|
mappings.add(myModes,
|
||||||
["L", "<A-Right>", "<M-Right>"], "Go forward in the browser history",
|
["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 });
|
{ flags: Mappings.flags.COUNT });
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
@@ -631,7 +631,7 @@ with (liberator) liberator.History = function () //{{{
|
|||||||
}
|
}
|
||||||
else
|
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
|
else
|
||||||
{
|
{
|
||||||
history.stepTo(count > 0 ? count : 1);
|
liberator.history.stepTo(count > 0 ? count : 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user