mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 05:25:46 +01:00
Fix mappings.getCandidates(). Closes issue #227.
This commit is contained in:
@@ -276,7 +276,7 @@ var Mappings = Module("mappings", {
|
|||||||
*/
|
*/
|
||||||
getCandidates: function (mode, prefix)
|
getCandidates: function (mode, prefix)
|
||||||
this._user[mode].concat(this._main[mode])
|
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
|
function (name) name.indexOf(prefix) == 0 && name.length > prefix.length
|
||||||
&& (prefix != "<" || !/^<.+>/.test(name)))),
|
&& (prefix != "<" || !/^<.+>/.test(name)))),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user