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:
aaronleventhal%moonset.net 2004-09-23 23:48:48 +00:00
parent 03052a2f27
commit b70fdcf3df

View File

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