1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 23:24:12 +01:00

Split Map.flags into individual properties of Map.

This commit is contained in:
Doug Kearns
2009-06-27 01:05:47 +10:00
parent 4afccff5e9
commit 6f2eb2d1ef
14 changed files with 139 additions and 124 deletions

View File

@@ -335,12 +335,12 @@ const config = { //{{{
mappings.add([modes.NORMAL],
["<C-a>"], "Increment last number in URL",
function (count) { incrementURL(Math.max(count, 1)); },
{ flags: Mappings.flags.COUNT });
{ count: true });
mappings.add([modes.NORMAL],
["<C-x>"], "Decrement last number in URL",
function (count) { incrementURL(-Math.max(count, 1)); },
{ flags: Mappings.flags.COUNT });
{ count: true });
mappings.add([modes.NORMAL], ["~"],
"Open home directory",
@@ -396,7 +396,7 @@ const config = { //{{{
else
liberator.open(url);
},
{ flags: Mappings.flags.COUNT });
{ count: true });
mappings.add([modes.NORMAL], ["gU"],
"Go to the root of the website",

View File

@@ -150,22 +150,22 @@ function Player() // {{{
mappings.add([modes.PLAYER],
["h", "<Left>"], "Seek -10s",
function (count) { player.seekBackward(Math.max(1, count) * 10000); },
{ flags: Mappings.flags.COUNT });
{ count: true });
mappings.add([modes.PLAYER],
["l", "<Right>"], "Seek +10s",
function (count) { player.seekForward(Math.max(1, count) * 10000); },
{ flags: Mappings.flags.COUNT });
{ count: true });
mappings.add([modes.PLAYER],
["H", "<S-Left>"], "Seek -1m",
function (count) { player.seekBackward(Math.max(1, count) * 60000); },
{ flags: Mappings.flags.COUNT });
{ count: true });
mappings.add([modes.PLAYER],
["L", "<S-Right>"], "Seek +1m",
function (count) { player.seekForward(Math.max(1, count) * 60000); },
{ flags: Mappings.flags.COUNT });
{ count: true });
mappings.add([modes.PLAYER],
["=", "+"], "Increase volume by 10%",