Bug 1520781 - Fix date/time picker for screen readers. r=mkmelin
--HG-- extra : rebase_source : 76ace7521758676c4dd2b177d4189f00084f5a09
This commit is contained in:
Родитель
4a8a7d8747
Коммит
be80e1d0c9
|
@ -779,6 +779,11 @@
|
|||
|
||||
this.initializeAttributeInheritance();
|
||||
|
||||
this.addEventListener("keydown", (event) => {
|
||||
if (event.key == "Escape") {
|
||||
this._popup.hidePopup();
|
||||
}
|
||||
});
|
||||
this._menulist.addEventListener("change", (event) => {
|
||||
event.stopPropagation();
|
||||
|
||||
|
|
|
@ -666,7 +666,7 @@ customElements.whenDefined("menulist").then(() => {
|
|||
// presented on XULComboboxAccessible generated from <menulist>;
|
||||
// hide these nodes from the accessibility tree.
|
||||
return document.importNode(MozXULElement.parseXULToFragment(`
|
||||
<textbox class="menulist-input" allowevents="true" flex="1" role="none"/>
|
||||
<textbox class="menulist-input" allowevents="true" flex="1"/>
|
||||
<hbox class="menulist-label-box" flex="1" role="none">
|
||||
<image class="menulist-icon" role="none"/>
|
||||
<label class="menulist-label" crop="right" flex="1" role="none"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче