summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/downloads/content
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-25 20:27:42 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-25 20:27:42 +0200
commit1e7bbbf01cdecf57823ca302730827c15175cd22 (patch)
tree6e66e8b8943d11653f7c54f12eb364efaec2904d /application/palemoon/components/downloads/content
parentfa6fa13eb45f2fbfc79545e9b832c7b1ebb2dcae (diff)
downloadUXP-1e7bbbf01cdecf57823ca302730827c15175cd22.tar
UXP-1e7bbbf01cdecf57823ca302730827c15175cd22.tar.gz
UXP-1e7bbbf01cdecf57823ca302730827c15175cd22.tar.lz
UXP-1e7bbbf01cdecf57823ca302730827c15175cd22.tar.xz
UXP-1e7bbbf01cdecf57823ca302730827c15175cd22.zip
Bug 1243445 - Pasting an invalid URL breaks the Downloads View in the Library
Issue #121
Diffstat (limited to 'application/palemoon/components/downloads/content')
-rw-r--r--application/palemoon/components/downloads/content/allDownloadsViewOverlay.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js b/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
index cf51db9d9..4ed2b6e3d 100644
--- a/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
+++ b/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
@@ -1443,6 +1443,10 @@ DownloadsPlacesView.prototype = {
},
doCommand: function DPV_doCommand(aCommand) {
+ // Commands may be invoked with keyboard shortcuts even if disabled.
+ if (!this.isCommandEnabled(aCommand)) {
+ return;
+ }
switch (aCommand) {
case "cmd_copy":
this._copySelectedDownloadsToClipboard();