mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 21:35:49 +01:00
add TODO and simplify replace 'pattern' for uppercasing modifier chars
This commit is contained in:
@@ -217,7 +217,7 @@ vimperator.Mappings = function() //{{{
|
|||||||
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
|
// only store keysyms with uppercase modifier strings
|
||||||
map.names[i] = map.names[i].replace(/([casm]-)/g, function($0, $1) { return $1.toUpperCase(); })
|
map.names[i] = map.names[i].replace(/[casm]-/g, function($0) { return $0.toUpperCase(); });
|
||||||
for (var j = 0; j < map.modes.length; j++)
|
for (var j = 0; j < map.modes.length; j++)
|
||||||
removeMap(map.modes[j], map.names[i]);
|
removeMap(map.modes[j], map.names[i]);
|
||||||
}
|
}
|
||||||
@@ -277,7 +277,6 @@ vimperator.Mappings = function() //{{{
|
|||||||
return matches;
|
return matches;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: implement filtering
|
|
||||||
this.list = function(mode, filter)
|
this.list = function(mode, filter)
|
||||||
{
|
{
|
||||||
var maps = user[mode];
|
var maps = user[mode];
|
||||||
|
|||||||
Reference in New Issue
Block a user