Bug 897274: Hardware search button should initiate a search. [r=margaret]

--HG--
extra : rebase_source : 9e5d575e402c8c9a623add755225e362bde38f8e
This commit is contained in:
Sriram Ramasubramanian 2013-07-24 14:43:03 -07:00
parent ea5e3ce4a0
commit 7fbb3f68ba

View File

@ -581,11 +581,6 @@ public class BrowserToolbar extends GeckoRelativeLayout
keyCode == KeyEvent.KEYCODE_VOLUME_UP ||
keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) {
return false;
} else if (keyCode == KeyEvent.KEYCODE_SEARCH) {
mUrlEditText.setText("");
mUrlEditText.requestFocus();
showSoftInput();
return true;
} else if (isEditing()) {
final int prevSelStart = mUrlEditText.getSelectionStart();
final int prevSelEnd = mUrlEditText.getSelectionEnd();