Bug 426329: enter in search bar doesn't work, patch by sevenfurnace@gmail.com, r=me

This commit is contained in:
gavin@gavinsharp.com 2008-04-01 10:22:43 -07:00
parent 140e9a1621
commit 4380ab9cc5

View File

@ -464,6 +464,9 @@
<method name="handleSearchCommand">
<parameter name="aEvent"/>
<body><![CDATA[
var textBox = this._textbox;
var textValue = textBox.value;
var where = "current";
if (aEvent && aEvent.originalTarget.getAttribute("anonid") == "search-go-button") {
if (aEvent.button == 2)
@ -476,9 +479,6 @@
where = "tab";
}
var textBox = this._textbox;
var textValue = textBox.value;
// Save the current value in the form history
if (textValue) {
textBox._formHistSvc.addEntry(textBox.getAttribute("autocompletesearchparam"),