mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 426329: enter in search bar doesn't work, patch by sevenfurnace@gmail.com, r=me
This commit is contained in:
parent
140e9a1621
commit
4380ab9cc5
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user