Add Alt+P hotkey stub

This commit is contained in:
ilyaigpetrov 2022-03-09 21:43:08 +05:00
parent 0d7678ff50
commit 3d72acc6dd
3 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,7 @@
'use strict';
chrome.commands.onCommand.addListener((command) => {
if (command === 'toggle-pac-script') {
console.log("Toggling PAC-script!");
}
});

View File

@ -27,6 +27,14 @@
"strict_min_version": "91.1.0"
}
},
"commands": {
"toggle-pac-script": {
"suggested_key": {
"default": "Alt+P"
},
"description": "Turn on/off current PAC-script"
}
},
"background": {
${persistent}
@ -40,9 +48,10 @@
${scripts_2x}
, "35-pac-kitchen-api.js"
, "37-sync-pac-script-with-pac-provider-api.js"
${scripts_8x}
, "70-menu-items.js"
, "75-context-menus.js"
, "76-hotkeys.js",
${scripts_8x}
]
},

View File

@ -28,7 +28,7 @@ exports.contexts.full = Object.assign({}, commonContext, {
persistent: '',
scripts_0x: '',
scripts_2x: ', "20-ip-to-host-api.js"',
scripts_8x: ', "80-error-menu.js", "83-last-errors.js", "85-block-informer.js"',
scripts_8x: '"80-error-menu.js", "83-last-errors.js", "85-block-informer.js"',
});
exports.contexts.mini = Object.assign({}, commonContext, {