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