Entry selected from autocomplete in compose window not used (bug 81695). Patch from Joe Hewitt <hewitt@netscape.com>. r=ducarroz@netscape.com, sr=smfr@netscape.com, a=asa@mozilla.org

This commit is contained in:
dmose%netscape.com 2001-06-08 07:29:17 +00:00
parent e97e0040b2
commit c405385555

View File

@ -522,7 +522,8 @@
var val = this.resultsPopup.getOverrideValue();
if (val) {
this.value = val;
} else {
} else if (this.mInputElt.value == this.currentSearchStringPreFilter) {
// only fill in default value if there is nothing currently selected in popup
var defaultSession = this.getDefaultSession();
if (defaultSession) {
var results = this.mLastResults[defaultSession];
@ -554,6 +555,8 @@
this.value = this.getResultValueAt(this.resultsPopup.selectedIndex);
}
this.mNeedToFinish = false;
this.closeResultPopup();
this.currentSearchStringPreFilter = "";