mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
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:
parent
e97e0040b2
commit
c405385555
@ -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 = "";
|
||||
|
Loading…
Reference in New Issue
Block a user