Skip to content

Commit 91a3f79

Browse files
committed
Changed keyboard shortcut
1 parent f7bc97b commit 91a3f79

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

frontend/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ chrome.runtime.onMessage.addListener((request, _, sendResponse) => {
4242
});
4343
//Default commmand = Alt+T , Mac = Option+T
4444
chrome.commands.onCommand.addListener((command) => {
45-
if (command === "enable-code-selection") {
45+
if (command === "translate") {
4646
chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
4747
if (tabs.length > 0) {
4848
chrome.tabs.sendMessage(tabs[0].id, { type: "ENABLE_PICKER" });

frontend/manifest.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@
4040
}
4141
],
4242
"commands": {
43-
"enable-code-selection": {
43+
"translate": {
4444
"suggested_key": {
45-
"default": "Alt+T"
45+
"default": "Alt+Shift+A",
46+
"mac": "Alt+Shift+A"
4647
},
47-
"description": "Activate code selection mode."
48+
"description": "Translate selected text"
4849
}
4950
}
5051
}

0 commit comments

Comments
 (0)