1
0
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:
Kris Maglione
2010-12-09 22:25:20 -05:00
parent 4c9e73949c
commit 75342f09ec
4 changed files with 29 additions and 8 deletions

View File

@@ -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] = [];