mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 09:17:59 +01:00
Do something sensible for items defined from :map/:com/... in :*usage!.
This commit is contained in:
@@ -140,7 +140,7 @@ const Mappings = Module("mappings", {
|
||||
|
||||
_addMap: function (map) {
|
||||
let where = map.user ? this._user : this._main;
|
||||
map.definedAt = Components.stack.caller.caller;
|
||||
map.definedAt = commands.getCaller(Components.stack.caller.caller);
|
||||
map.modes.forEach(function (mode) {
|
||||
if (!(mode in where))
|
||||
where[mode] = [];
|
||||
|
||||
Reference in New Issue
Block a user