1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-01 21:32:27 +01:00

Fix :listkeys completion.

This commit is contained in:
Doug Kearns
2016-01-12 22:15:32 +11:00
parent e36f8ed7cd
commit 6b25390115

View File

@@ -265,8 +265,9 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
let seen = {};
context.completions = new RealSet(
Array.from(params.iterate(args))
.flatMap(item => Object.keys(item).join(" ")
.toLowerCase().split(/[()\s]+/))
.flatMap(item => keys(item).join(" ")
.toLowerCase()
.split(/[()\s]+/))
.map(k => {
seen[k] = (seen[k] || 0) + 1;
return k;