diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /browser/base/content/browser-ctrlTab.js | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/base/content/browser-ctrlTab.js')
-rw-r--r-- | browser/base/content/browser-ctrlTab.js | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/browser/base/content/browser-ctrlTab.js b/browser/base/content/browser-ctrlTab.js index 31617f13a3..d4d79a6886 100644 --- a/browser/base/content/browser-ctrlTab.js +++ b/browser/base/content/browser-ctrlTab.js @@ -581,7 +581,7 @@ var ctrlTab = { return; } - Services.els.addSystemEventListener(document, "keyup", this, false); + document.addEventListener("keyup", this, { mozSystemGroup: true }); let tabs = gBrowser.visibleTabs; if (tabs.length > 2) { @@ -706,12 +706,7 @@ var ctrlTab = { event.stopPropagation(); if (event.keyCode === event.DOM_VK_CONTROL) { - Services.els.removeSystemEventListener( - document, - "keyup", - this, - false - ); + document.removeEventListener("keyup", this, { mozSystemGroup: true }); if (this.isOpen) { this.pick(); @@ -787,9 +782,9 @@ var ctrlTab = { tabContainer[toggleEventListener]("TabShow", this); if (enable) { - Services.els.addSystemEventListener(document, "keydown", this, false); + document.addEventListener("keydown", this, { mozSystemGroup: true }); } else { - Services.els.removeSystemEventListener(document, "keydown", this, false); + document.removeEventListener("keydown", this, { mozSystemGroup: true }); } document[toggleEventListener]("keypress", this); gBrowser.tabbox.handleCtrlTab = !enable; |