the default shortcut is not enforced at startup anymore. fixes #384
This commit is contained in:
parent
1e8eb4a1d4
commit
0bdc94d7e6
2 changed files with 3 additions and 12 deletions
|
|
@ -54,6 +54,9 @@
|
||||||
},
|
},
|
||||||
"commands": {
|
"commands": {
|
||||||
"_thunderai__do_action": {
|
"_thunderai__do_action": {
|
||||||
|
"suggested_key": {
|
||||||
|
"default": "Ctrl+Alt+A"
|
||||||
|
},
|
||||||
"description": "Opens the ThunderAI prompts menu"
|
"description": "Opens the ThunderAI prompts menu"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -94,18 +94,6 @@ browser.contentScripts.register({
|
||||||
runAt: "document_idle"
|
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
|
// Listen for shortcut command
|
||||||
messenger.commands.onCommand.addListener((command, tab) => {
|
messenger.commands.onCommand.addListener((command, tab) => {
|
||||||
if (command === "_thunderai__do_action") {
|
if (command === "_thunderai__do_action") {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue