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

Fix linking to source definitions from :listkeys et al.

This commit is contained in:
Doug Kearns
2015-06-18 03:15:24 +10:00
parent 422fc6b9b7
commit e31211fcc4

View File

@@ -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();