зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
983bb01b87
Коммит
ba628791ca
|
@ -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');"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче