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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user