1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 12:37:58 +01:00

Add <Left>/<Right> mappings for seeking.

These are the same as "h" and "l".
This commit is contained in:
Doug Kearns
2009-03-25 02:13:14 +11:00
parent b62527f8e6
commit 4bfb4b7515

View File

@@ -68,12 +68,12 @@ function Player() // {{{
function () { player.toggleRepeat(); }); function () { player.toggleRepeat(); });
mappings.add([modes.PLAYER], mappings.add([modes.PLAYER],
["h"], "Seek -10s", ["h", "<Left>"], "Seek -10s",
function (count) { player.seekBackward(Math.max(1, count) * 10000); }, function (count) { player.seekBackward(Math.max(1, count) * 10000); },
{ flags: Mappings.flags.COUNT }); { flags: Mappings.flags.COUNT });
mappings.add([modes.PLAYER], mappings.add([modes.PLAYER],
["l"], "Seek +10s", ["l", "<Right>"], "Seek +10s",
function (count) { player.seekForward(Math.max(1, count) * 10000); }, function (count) { player.seekForward(Math.max(1, count) * 10000); },
{ flags: Mappings.flags.COUNT }); { flags: Mappings.flags.COUNT });