1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 23:12:27 +01:00

Fix error trapping in events.feedkeys.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-27 01:49:10 -05:00
parent 15b2909bc1
commit 163539ab29
3 changed files with 19 additions and 13 deletions

View File

@@ -410,6 +410,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
util.dump(elem);
util.reportError(e);
}
if (services.focus.focusedWindow == null)
util.dumpStack("focusedWindow == null");
},
/**
@@ -455,6 +457,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
if (elem && elem != dactyl.focusedElement)
dactyl.focus(elem);
if (services.focus.focusedWindow == null)
util.dumpStack("focusedWindow == null");
},
/** @property {Element} The currently focused element. */