Fix 2457 - add shortcut for sorting tabs by container
This commit is contained in:
+1
-1
Submodule src/_locales updated: 417e6294ed...1b944a2cbd
@@ -15,6 +15,11 @@ const backgroundLogic = {
|
|||||||
unhideQueue: [],
|
unhideQueue: [],
|
||||||
init() {
|
init() {
|
||||||
browser.commands.onCommand.addListener(function (command) {
|
browser.commands.onCommand.addListener(function (command) {
|
||||||
|
if (command === "sort_tabs") {
|
||||||
|
backgroundLogic.sortTabs();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (let i=0; i < backgroundLogic.NUMBER_OF_KEYBOARD_SHORTCUTS; i++) {
|
for (let i=0; i < backgroundLogic.NUMBER_OF_KEYBOARD_SHORTCUTS; i++) {
|
||||||
const key = "open_container_" + i;
|
const key = "open_container_" + i;
|
||||||
const cookieStoreId = identityState.keyboardShortcut[key];
|
const cookieStoreId = identityState.keyboardShortcut[key];
|
||||||
|
|||||||
@@ -43,6 +43,13 @@
|
|||||||
},
|
},
|
||||||
"description": "Open containers panel"
|
"description": "Open containers panel"
|
||||||
},
|
},
|
||||||
|
"sort_tabs": {
|
||||||
|
"suggested_key": {
|
||||||
|
"default": "Ctrl+Comma",
|
||||||
|
"mac": "MacCtrl+Comma"
|
||||||
|
},
|
||||||
|
"description": "Sort tabs by container"
|
||||||
|
},
|
||||||
"open_container_0": {
|
"open_container_0": {
|
||||||
"suggested_key": {
|
"suggested_key": {
|
||||||
"default": "Ctrl+Shift+1"
|
"default": "Ctrl+Shift+1"
|
||||||
|
|||||||
Reference in New Issue
Block a user