Fix 2457 - add shortcut for sorting tabs by container
This commit is contained in:
parent
a91c6b09a9
commit
c948a9501d
3 changed files with 13 additions and 1 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 417e6294ed767914b617a5e56ccbe67482df181c
|
Subproject commit 1b944a2cbd8577c8ca928729ff1439dd30ce8269
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue