128503 - quicksearch behavior in mail and ab not consistent. r=cavin, sr=sspitzer.

This commit is contained in:
shliang%netscape.com 2003-02-28 03:58:46 +00:00
parent 262cd58812
commit dc3eb8ed8a
3 changed files with 4 additions and 3 deletions

View File

@ -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();"

View File

@ -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();"

View File

@ -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 {