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/base/content/tabbrowser.js | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.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/base/content/tabbrowser.js')
-rw-r--r-- | browser/base/content/tabbrowser.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/browser/base/content/tabbrowser.js b/browser/base/content/tabbrowser.js index a9637ad262..54a801939a 100644 --- a/browser/base/content/tabbrowser.js +++ b/browser/base/content/tabbrowser.js @@ -119,8 +119,8 @@ Services.obs.addObserver(this, "contextual-identity-updated"); - Services.els.addSystemEventListener(document, "keydown", this, false); - Services.els.addSystemEventListener(document, "keypress", this, false); + document.addEventListener("keydown", this, { mozSystemGroup: true }); + document.addEventListener("keypress", this, { mozSystemGroup: true }); document.addEventListener("visibilitychange", this); window.addEventListener("framefocusrequested", this); window.addEventListener("activate", this); @@ -5948,14 +5948,11 @@ } } - Services.els.removeSystemEventListener(document, "keydown", this, false); + document.removeEventListener("keydown", this, { mozSystemGroup: true }); if (AppConstants.platform == "macosx") { - Services.els.removeSystemEventListener( - document, - "keypress", - this, - false - ); + document.removeEventListener("keypress", this, { + mozSystemGroup: true, + }); } document.removeEventListener("visibilitychange", this); window.removeEventListener("framefocusrequested", this); |