Bug 405892 – Finish polish of the download manager search field. r=sdwilsh

This commit is contained in:
Dão Gottwald 2008-08-05 23:33:41 +02:00
Родитель 58d623909f
Коммит 2174991cf3
3 изменённых файлов: 2 добавлений и 26 удалений

Просмотреть файл

@ -463,15 +463,11 @@ function Startup()
// Clear the search box and move focus to the list on escape from the box
gSearchBox.addEventListener("keypress", function(e) {
if (e.keyCode == e.DOM_VK_ESCAPE) {
// Clear the input as if the user did it
gSearchBox.value = "";
gSearchBox.doCommand();
// Move focus to the list instead of closing the window
gDownloadsView.focus();
e.preventDefault();
}
}, true);
}, false);
}
function Shutdown()

Просмотреть файл

@ -189,7 +189,7 @@
accesskey="&cmd.clearList.accesskey;"
tooltiptext="&cmd.clearList.tooltip;"/>
<spacer flex="1"/>
<textbox type="timed" timeout="500" id="searchbox"
<textbox type="search" id="searchbox"
oncommand="buildDownloadList();" emptytext="&searchBox.label;"/>
</hbox>

Просмотреть файл

@ -134,23 +134,3 @@ richlistitem[type="download"] button {
#clearListButton:hover:active:not([disabled="true"]) {
background: url(chrome://global/skin/icons/white-gray-gradient-active.gif);
}
#searchbox {
-moz-appearance: none;
border: 3px solid;
-moz-border-top-colors: #676767 #C5C5C5 -moz-Field;
-moz-border-bottom-colors: #C2C2C2 #A4A4A4 -moz-Field;
-moz-border-right-colors: #969696 #C5C5C5 -moz-Field;
-moz-border-left-colors: #969696 #C5C5C5 -moz-Field;
-moz-border-radius: 11.5px;
background: url("chrome://global/skin/icons/search-textbox.png") -moz-Field no-repeat 1px center;
-moz-background-clip: border !important;
padding: 0 8px;
-moz-padding-start: 16px;
}
#searchbox[focused="true"] {
outline: 2px solid -moz-mac-focusring;
outline-offset: -2px;
-moz-outline-radius: 100%;
}