diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /browser/components/downloads/content/downloads.js | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-upstream/125.0.1.tar.xz firefox-upstream/125.0.1.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/downloads/content/downloads.js')
-rw-r--r-- | browser/components/downloads/content/downloads.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/browser/components/downloads/content/downloads.js b/browser/components/downloads/content/downloads.js index 778b995e93..b420d48db6 100644 --- a/browser/components/downloads/content/downloads.js +++ b/browser/components/downloads/content/downloads.js @@ -528,7 +528,10 @@ var DownloadsPanel = { }, _startWatchingForSpammyDownloadActivation() { - Services.els.addSystemEventListener(window, "keydown", this, true); + window.addEventListener("keydown", this, { + capture: true, + mozSystemGroup: true, + }); }, _lastBeepTime: 0, @@ -546,7 +549,10 @@ var DownloadsPanel = { }, _stopWatchingForSpammyDownloadActivation() { - Services.els.removeSystemEventListener(window, "keydown", this, true); + window.removeEventListener("keydown", this, { + capture: true, + mozSystemGroup: true, + }); }, /** @@ -1458,7 +1464,7 @@ var DownloadsSummary = { * @param aEvent * The click event being handled. */ - onClick(aEvent) { + onClick() { DownloadsPanel.showDownloadsHistory(); }, |