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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user