Bug 413985 - Space key for pause/resume doesn't work (never did). Patch by Simon B��nzli <zeniko@gmail.com>. r=sdwilsh, a=beltzner

This commit is contained in:
sdwilsh%shawnwilsher.com 2008-01-27 03:28:32 +00:00
Родитель 983bb01b87
Коммит ba628791ca
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -655,10 +655,10 @@ var gDownloadViewController = {
pauseDownload(aSelectedItem);
},
cmd_pauseResume: function(aSelectedItem) {
if (aSelectedItem.inProgress)
this.commands.cmd_pause(aSelectedItem);
if (aSelectedItem.paused)
this.cmd_resume(aSelectedItem);
else
this.commands.cmd_resume(aSelectedItem);
this.cmd_pause(aSelectedItem);
},
cmd_removeFromList: function(aSelectedItem) {
removeDownload(aSelectedItem);

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

@ -84,7 +84,7 @@
<keyset id="downloadKeys">
<key keycode="VK_ENTER" oncommand="doDefaultForSelected();"/>
<key keycode="VK_RETURN" oncommand="doDefaultForSelected();"/>
<key id="key_pauseResume" key=" " command="cmd_pauseResume"/>
<key id="key_pauseResume" key=" " oncommand="performCommand('cmd_pauseResume');"/>
<key id="key_removeFromList" keycode="VK_DELETE" oncommand="performCommand('cmd_removeFromList');"/>
#ifdef XP_MACOSX
<key id="key_removeFromList2" keycode="VK_BACK" oncommand="performCommand('cmd_removeFromList');"/>