1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 16:34:14 +01:00

allow lowercase modifier chars in the {lhs} arg of :map and related commands

This commit is contained in:
Doug Kearns
2007-10-25 07:59:52 +00:00
parent b8221a475b
commit a3075cd484

View File

@@ -216,6 +216,8 @@ vimperator.Mappings = function() //{{{
{
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, $1) { return $1.toUpperCase(); })
for (var j = 0; j < map.modes.length; j++)
removeMap(map.modes[j], map.names[i]);
}