mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
128503 - quicksearch behavior in mail and ab not consistent. r=cavin, sr=sspitzer.
This commit is contained in:
parent
262cd58812
commit
dc3eb8ed8a
@ -362,7 +362,8 @@ Contributor(s):
|
||||
control="searchInput"/>
|
||||
<textbox id="searchInput" flex="1"
|
||||
oninput="onAbSearchInput(false);"
|
||||
onkeypress="onAbSearchKeyPress(event);"/>
|
||||
onkeypress="onAbSearchKeyPress(event);"
|
||||
onfocus="this.select();" onclick="this.select();"/>
|
||||
<button id="clear" label="&clearButton.label;" disabled="true"
|
||||
accesskey="&clearButton.accesskey;"
|
||||
oncommand="onAbClearSearch();"
|
||||
|
@ -1595,7 +1595,7 @@ Rights Reserved.
|
||||
<hbox id="searchBox" persist="collapsed" align="center">
|
||||
<label id="searchCriteria" value="&SearchSubjectOrSender.label;" control="searchInput"
|
||||
accesskey="&SearchSubjectOrSender.accesskey;"/>
|
||||
<textbox id="searchInput" flex="5" onfocus="this.select();" oninput="onSearchInput(false);" onkeypress="onSearchKeyPress(event);"/>
|
||||
<textbox id="searchInput" flex="5" onfocus="this.select();" onclick="this.select();" oninput="onSearchInput(false);" onkeypress="onSearchKeyPress(event);"/>
|
||||
<button id="clearButton" label="&clearButton.label;" disabled="true" tooltiptext="&clearButton.tooltip;" oncommand="onClearSearch();"
|
||||
accesskey="&clearButton.accesskey;"/>
|
||||
<button id="advancedButton" label="&advancedButton.label;" tooltiptext="&advancedButton.tooltip;" oncommand="onAdvancedSearch();"
|
||||
|
@ -170,6 +170,7 @@ function onEnterInSearchBar()
|
||||
return;
|
||||
}
|
||||
|
||||
gSearchInput.select();
|
||||
initializeSearchBar();
|
||||
|
||||
gClearButton.setAttribute("disabled", false); //coming into search enable clear button
|
||||
@ -365,7 +366,6 @@ function onSearchInput(returnKeyHit)
|
||||
// only select the text when the return key was hit
|
||||
if (returnKeyHit) {
|
||||
GetSearchInput();
|
||||
gSearchInput.select();
|
||||
onEnterInSearchBar();
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user