bug 225215: alt-Enter doesn't work in the search bar

git-svn-id: svn://10.0.0.236/trunk@190435 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
chanial%noos.fr
2006-02-18 00:13:16 +00:00
parent 8ac0f2a04d
commit 64a48cdfb7

View File

@@ -122,8 +122,8 @@
]]></body>
</method>
// overload |onTextEntered| in autocomplete.xml
<method name="onTextEntered">
<parameter name="aEvent"/>
<body><![CDATA[
// Save the current value in the form history
if (gFormFillEnabled) {
@@ -132,14 +132,13 @@
.getService(Components.interfaces.nsIFormHistory);
gFormHistory.addEntry(this.getAttribute("autocompletesearchparam"), this.value);
}
if (this.currentEngine != "__PhoenixFindInPage") {
var ISEARCHSVC = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"]
.getService(Components.interfaces.nsIInternetSearchService);
var searchURL = ISEARCHSVC.GetInternetSearchURL(this.currentEngine, escape(this.value),
0, 0, {value:0});
gURLBar.value = searchURL;
BrowserLoadURL(aEvent);
BrowserLoadURL(this.mEnterEvent); // from autocomplete.xml
} else {
quickFindInPage(this.value);
}