1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-04 10:55:47 +01:00

Fix mappings.getCandidates(). Closes issue #227.

This commit is contained in:
Kris Maglione
2011-01-02 19:49:13 -05:00
parent 7605c0ed54
commit 3ef94f5861

View File

@@ -276,7 +276,7 @@ var Mappings = Module("mappings", {
*/
getCandidates: function (mode, prefix)
this._user[mode].concat(this._main[mode])
.filter(function (map) map.names.some(
.filter(function (map) map.keys.some(
function (name) name.indexOf(prefix) == 0 && name.length > prefix.length
&& (prefix != "<" || !/^<.+>/.test(name)))),