mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 15:22:26 +01:00
simplify expandLeader()
This commit is contained in:
@@ -128,12 +128,7 @@ function Mappings() //{{{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function expandLeader(keyString)
|
function expandLeader(keyString) keyString.replace(/<Leader>/i, mappings.getMapLeader())
|
||||||
{
|
|
||||||
var leaderRegexp = /<Leader>/i;
|
|
||||||
var currentLeader = mappings.getMapLeader();
|
|
||||||
return keyString.replace(leaderRegexp, currentLeader);
|
|
||||||
}
|
|
||||||
|
|
||||||
function mappingsIterator(modes, stack)
|
function mappingsIterator(modes, stack)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user