mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 03:57:59 +01:00
allow lowercase modifier chars in the {lhs} arg of :map and related commands
This commit is contained in:
@@ -124,9 +124,7 @@ vimperator.Mappings = function() //{{{
|
|||||||
|
|
||||||
for (var i = 0; i < maps.length; i++)
|
for (var i = 0; i < maps.length; i++)
|
||||||
{
|
{
|
||||||
names = maps[i].names;
|
if (maps[i].hasName(cmd))
|
||||||
for (var j = 0; j < names.length; j++)
|
|
||||||
if (names[j] == cmd)
|
|
||||||
return maps[i];
|
return maps[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,7 +211,11 @@ vimperator.Mappings = function() //{{{
|
|||||||
this.add = function(map)
|
this.add = function(map)
|
||||||
{
|
{
|
||||||
for (var i = 0; i < map.names.length; i++)
|
for (var i = 0; i < map.names.length; i++)
|
||||||
|
{
|
||||||
|
// only store keysyms with uppercase modifier strings
|
||||||
|
map.names[i] = map.names[i].replace(/[casm]-/g, function($0) { return $0.toUpperCase(); });
|
||||||
removeMap(map.mode, map.names[i]);
|
removeMap(map.mode, map.names[i]);
|
||||||
|
}
|
||||||
|
|
||||||
user[map.mode].push(map);
|
user[map.mode].push(map);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user