1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 17:24:13 +01:00

Allow binding keys in "menu" modes.

This commit is contained in:
Kris Maglione
2010-12-25 19:45:05 -05:00
parent dca9f2df86
commit 1c9d1b2548
3 changed files with 12 additions and 7 deletions

View File

@@ -68,7 +68,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
__noSuchMethod__: function (meth, args) {
let win = util.activeWindow;
var dactyl = global && global.dactyl || win && win.dactyl;
if (!win)
if (!dactyl)
return null;
let prop = dactyl[meth];
@@ -102,6 +102,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
}
catch (e) {}
}
Class.replaceProperty(obj, "observe",
function (subject, target, data) {
try {