mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 09:35:45 +01:00
Show 'passkeys' state of key chains in :listkeys. Fix linkifyHelp link styling issues. Minor optimization for non-passkeys sites.
This commit is contained in:
@@ -38,7 +38,8 @@ var ProcessorStack = Class("ProcessorStack", {
|
||||
};
|
||||
}
|
||||
|
||||
if (!builtin && (!dactyl.focusedElement || events.isContentNode(dactyl.focusedElement)))
|
||||
if (!builtin && options.get("passkeys").hive.values.length
|
||||
&& (!dactyl.focusedElement || events.isContentNode(dactyl.focusedElement)))
|
||||
this.processors.unshift(KeyProcessor(modes.BASE, options.get("passkeys").hive));
|
||||
},
|
||||
|
||||
@@ -1539,11 +1540,13 @@ var Events = Module("events", {
|
||||
|
||||
pass: set(array.flatten(values.map(function (v) v.keys))),
|
||||
|
||||
stack: MapHive.Stack(values.map(function (v) v.map))
|
||||
stack: MapHive.Stack(values.map(function (v) v.map)),
|
||||
|
||||
values: values
|
||||
});
|
||||
},
|
||||
|
||||
has: function (key) set.has(this.hive.pass, key),
|
||||
has: function (key) set.has(this.hive.pass, key) || set.has(this.hive.stack.mappings, key),
|
||||
|
||||
get hive() (this.flush(), this.hive),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user