From 0bdc94d7e699ec5bfa730c64f7a6924c0ab9c499 Mon Sep 17 00:00:00 2001 From: mic Date: Thu, 22 May 2025 22:13:48 +0200 Subject: [PATCH] the default shortcut is not enforced at startup anymore. fixes #384 --- manifest.json | 3 +++ mzta-background.js | 12 ------------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/manifest.json b/manifest.json index c79759bc..a29cfde8 100644 --- a/manifest.json +++ b/manifest.json @@ -54,6 +54,9 @@ }, "commands": { "_thunderai__do_action": { + "suggested_key": { + "default": "Ctrl+Alt+A" + }, "description": "Opens the ThunderAI prompts menu" } }, diff --git a/mzta-background.js b/mzta-background.js index 08f7846b..27b24601 100644 --- a/mzta-background.js +++ b/mzta-background.js @@ -94,18 +94,6 @@ browser.contentScripts.register({ runAt: "document_idle" }); -let ThunderAI_Shortcut = "Ctrl+Alt+A"; - -// Shortcut -messenger.commands.update({ - name: "_thunderai__do_action", - shortcut: ThunderAI_Shortcut -}).then(() => { - taLog.log('Shortcut [' + ThunderAI_Shortcut + '] registered successfully!'); -}).catch((error) => { - taLog.error('Error registering shortcut [' + ThunderAI_Shortcut + ']: ' + error); -}); - // Listen for shortcut command messenger.commands.onCommand.addListener((command, tab) => { if (command === "_thunderai__do_action") {