mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-18 01:42:31 +02:00
Fix :listkeys completion.
This commit is contained in:
1 parent
e36f8ed7cd
commit
6b25390115
1 file changed
+3
-2
@@ -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