Bug 1318339 - [DateTimeInput] Prevent reset button from getting focus. r=mossop

Reset button should not be tabbable or focusable.

MozReview-Commit-ID: IboMKl3n0LY
This commit is contained in:
Jessica Jong
2017-04-21 17:35:43 +08:00
parent bd21e3e649
commit 6d6919a6e7

View File

@@ -1157,7 +1157,7 @@
<property name="EVENTS" readonly="true">
<getter>
<![CDATA[
return ["click", "focus", "blur", "copy", "cut", "paste"];
return ["click", "focus", "blur", "copy", "cut", "paste", "mousedown"];
]]>
</getter>
</property>
@@ -1552,6 +1552,12 @@
this.onBlur(aEvent);
break;
}
case "mousedown": {
if (aEvent.originalTarget == this.mResetButton) {
aEvent.preventDefault();
}
break;
}
case "copy":
case "cut":
case "paste": {