1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-07 22:05:46 +01:00

Don't Be Evil.

--HG--
rename : pentadactyl/skin/icon.png => pentadactyl/icon16.png
This commit is contained in:
Kris Maglione
2011-09-11 15:06:46 -04:00
parent 68d8bf74df
commit 345cce5a42
8 changed files with 41 additions and 28 deletions

View File

@@ -163,10 +163,10 @@ var Events = Module("events", {
if (modes.main != modes.AUTOCOMPLETE)
modes.push(modes.AUTOCOMPLETE);
}
else if (elem.localName !== "tooltip") {
if (Events.isHidden(elem))
if (elem.hidePopup && Events.isHidden(elem.parentNode))
elem.hidePopup();
else if (elem.hidePopup && elem.localName !== "tooltip"
&& Events.isHidden(elem)
&& Events.isHidden(elem.parentNode)) {
elem.hidePopup();
}
},
@@ -420,6 +420,7 @@ var Events = Module("events", {
toString: function toString() {
if (!arguments.length)
return toString.supercall(this);
deprecated.warn(toString, "toString", "DOM.Event.stringify");
return DOM.Event.stringify.apply(DOM.Event, arguments);
},
@@ -584,7 +585,7 @@ var Events = Module("events", {
if (elem == window)
overlay.activeWindow = window;
elem.dactylHadFocus = true;
overlay.setData(elem, "had-focus", true);
if (event.target instanceof Ci.nsIDOMXULTextBoxElement)
if (Events.isHidden(elem, true))
elem.blur();