mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
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:
parent
03052a2f27
commit
b70fdcf3df
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user