Fix 2457 - add shortcut for sorting tabs by container

This commit is contained in:
Danny Colin
2023-01-23 18:49:39 -05:00
parent a91c6b09a9
commit c948a9501d
3 changed files with 13 additions and 1 deletions
+5
View File
@@ -15,6 +15,11 @@ const backgroundLogic = {
unhideQueue: [],
init() {
browser.commands.onCommand.addListener(function (command) {
if (command === "sort_tabs") {
backgroundLogic.sortTabs();
return;
}
for (let i=0; i < backgroundLogic.NUMBER_OF_KEYBOARD_SHORTCUTS; i++) {
const key = "open_container_" + i;
const cookieStoreId = identityState.keyboardShortcut[key];
+7
View File
@@ -43,6 +43,13 @@
},
"description": "Open containers panel"
},
"sort_tabs": {
"suggested_key": {
"default": "Ctrl+Comma",
"mac": "MacCtrl+Comma"
},
"description": "Sort tabs by container"
},
"open_container_0": {
"suggested_key": {
"default": "Ctrl+Shift+1"