зеркало из https://github.com/mozilla/pjs.git
Bug 260846. Extra select events being thrown when no selection in autocomplete's tree dropdown. These are causing extra focus/selection events being thrown by accessibility api layer, in turn causing the screen reader to babble extra garbage as user types in autocomplete field. r=pkw, sr=neil, a=asa
This commit is contained in:
Родитель
f65293a74e
Коммит
1477577cb9
|
@ -1179,14 +1179,14 @@
|
|||
|
||||
this.mBoxObject.invalidateRow(aRow);
|
||||
|
||||
if (aRow != null)
|
||||
if (aRow != null) {
|
||||
this.mBoxObject.ensureRowIsVisible(aRow);
|
||||
|
||||
// Fire select event on xul:tree so that accessibility API
|
||||
// support layer can fire appropriate accessibility events.
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent("select", true, true);
|
||||
this.mTree.element.dispatchEvent(event);
|
||||
// Fire select event on xul:tree so that accessibility API
|
||||
// support layer can fire appropriate accessibility events.
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent("select", true, true);
|
||||
this.mTree.element.dispatchEvent(event);
|
||||
}
|
||||
},
|
||||
|
||||
get selectedIndex()
|
||||
|
|
Загрузка…
Ссылка в новой задаче