diff --git a/mozilla/toolkit/content/widgets/listbox.xml b/mozilla/toolkit/content/widgets/listbox.xml index b89f2a300ef..b3db00a0da9 100644 --- a/mozilla/toolkit/content/widgets/listbox.xml +++ b/mozilla/toolkit/content/widgets/listbox.xml @@ -228,7 +228,7 @@ = 0) @@ -504,6 +504,19 @@ + + 0) { + this.currentItem = getItemAtIndex(0); // focus first item + if (this.selType != 'multiple') { + // In single selection trees the selection should be the same + // as the focus + this.timedSelect(currentItem, this._selectDelay); + } + this.ensureIndexIsVisible(0); + } + ]]> + - + + 0) { + this.currentIndex = 0; + if (this.view.selection.single) { + this.view.selection.select(0); + } + this.treeBoxObject.ensureRowIsVisible(0); + } + ]]> +