Bug 415255: AMO Manager: Clearing search results should refocus cursor in
search textbox. r=robstrong, a=beltzner git-svn-id: svn://10.0.0.236/trunk@247301 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
30cbf87bbb
commit
fdf6ee8a1a
@ -642,6 +642,7 @@ function displaySearchThrobber(aKey) {
|
||||
function resetSearch() {
|
||||
var searchbox = document.getElementById("searchbox");
|
||||
searchbox.value = "";
|
||||
searchbox.focus();
|
||||
retrieveRepositoryAddons("");
|
||||
}
|
||||
|
||||
|
||||
@ -921,6 +921,7 @@
|
||||
this.setAttribute("value", "");
|
||||
this._cancelButton.hidden = true;
|
||||
this._searchButton.hidden = false;
|
||||
this.focus();
|
||||
</body>
|
||||
</method>
|
||||
|
||||
@ -936,6 +937,11 @@
|
||||
</implementation>
|
||||
|
||||
<handlers>
|
||||
<handler event="focus" phase="capturing">
|
||||
if (event.originalTarget == this)
|
||||
this.textbox.focus(); // Forward focus to actual textbox
|
||||
</handler>
|
||||
|
||||
<handler event="keypress" keycode="VK_ENTER">
|
||||
if (event.originalTarget == this.textbox.inputField) {
|
||||
this.startSearch();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user