In my manifest.json I am trying to open a new tab when I press "CTRL+SHIFT+Z" but the background.js file does not even log the event.
"toggle-feature-foo":{
"suggested_key":{
"default": "Ctrl+Shift+Z"
},
"description": "Toggle feature foo",
"global": true
}
I have a listener in my background.js but nothing logs in my background.js console.
chrome.commands.onCommand.addListener((command) => {
console.log("HELLO");
console.log(`Command: ${command}`);
});
I am following the API documentation from google: https://developer.chrome.com/docs/extensions/reference/commands/