diff options
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); |