Implement dynamic loading of DevTools shortcuts and enhance shortcut management

This commit is contained in:
mr. M
2025-01-03 01:51:15 +01:00
parent 766c16dc3c
commit 13726e1e8a
2 changed files with 48 additions and 7 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/devtools/startup/DevToolsStartup.sys.mjs b/devtools/startup/DevToolsStartup.sys.mjs
index 0c9db6cb85c491a9f0fc216071afc66e553dcd51..10faeb699a35bb53bd0bd4bce36f18626a8f3288 100644
--- a/devtools/startup/DevToolsStartup.sys.mjs
+++ b/devtools/startup/DevToolsStartup.sys.mjs
@@ -806,6 +806,8 @@ DevToolsStartup.prototype = {
// account (see bug 832984).
const mainKeyset = doc.getElementById("mainKeyset");
mainKeyset.parentNode.insertBefore(keyset, mainKeyset);
+
+ window.dispatchEvent(new window.Event("zen-devtools-keyset-added"));
},
/**