diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-25 20:27:42 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-25 20:27:42 +0200 |
commit | 1e7bbbf01cdecf57823ca302730827c15175cd22 (patch) | |
tree | 6e66e8b8943d11653f7c54f12eb364efaec2904d /application | |
parent | fa6fa13eb45f2fbfc79545e9b832c7b1ebb2dcae (diff) | |
download | UXP-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')
-rw-r--r-- | application/palemoon/components/downloads/content/allDownloadsViewOverlay.js | 4 |
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(); |