зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2b7a60fde4
Коммит
ad230e9660
|
@ -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>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче