Bug 404647 - "CTRL+F shortcut should focus the search box in the download manager" [p=cdolivei.bugzilla@gmail.com (cesar) r=sdwilsh a1.9=schrep]

This commit is contained in:
reed@reedloden.com 2007-11-22 01:22:25 -08:00
Родитель 2b7a60fde4
Коммит ad230e9660
3 изменённых файлов: 9 добавлений и 0 удалений

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

@ -36,6 +36,7 @@
<!ENTITY cmd.clearList.label "Clear List">
<!ENTITY cmd.clearList.tooltip "Removes completed, canceled, and failed downloads from the list">
<!ENTITY cmd.clearList.accesskey "C">
<!ENTITY cmd.find.commandKey "f">
<!ENTITY closeWhenDone.label "Close when downloads complete">
<!ENTITY closeWhenDone.tooltip "Closes the Downloads window when all files are done downloading">

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

@ -708,6 +708,11 @@ var gDownloadViewController = {
}
};
function setSearchboxFocus()
{
document.getElementById("searchbox").focus();
}
function onDownloadShowInfo()
{
if (gDownloadsView.selectedItem)

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

@ -117,6 +117,9 @@
<key id="key_close2" key="&cmd.close2.commandKey;" oncommand="closeWindow(true);" modifiers="accel"/>
#endif
<key keycode="VK_ESCAPE" oncommand="closeWindow(true);"/>
<key id="key_find"
key="&cmd.find.commandKey;" modifiers="accel"
oncommand="setSearchboxFocus()"/>
<key id="key_info" key="&cmd.info.commandKey;" oncommand="onDownloadShowInfo();" modifiers="accel"/>
</keyset>