From 6b253901157a854e40a3deea2d44a1826e0ef9fb Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 12 Jan 2016 22:15:32 +1100 Subject: [PATCH] Fix :listkeys completion. --- common/content/dactyl.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 4a6a7636..53106cad 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -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;