From e31211fcc4b93e048a4c3f81fb0c83ba1ca14ff0 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 18 Jun 2015 03:15:24 +1000 Subject: [PATCH] Fix linking to source definitions from :listkeys et al. --- common/content/dactyl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index f7e430d6..ba6e1655 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -852,7 +852,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { click: function onClick(event) { let elem = event.originalTarget; - if (elem instanceof Element && services.security.isSystemPrincipal(elem.nodePrincipal)) { + if (elem instanceof Ci.nsIDOMElement && services.security.isSystemPrincipal(elem.nodePrincipal)) { let command = elem.getAttributeNS(NS, "command"); if (command && event.button == 0) { event.preventDefault();