Chrome extension noob here, I'm trying to write a manifest.json
for an extension so that the extension's popup (hotbox.html) launches while hitting the Command+Shift+0
on my keyboard.
I have the following code, however, it does nothing when I try to use my supposed shortcut. I have verified that the shortcut does not conflict with any other that I know of, I've also tried installing and uninstalling the extensions, but it doesn't work.
I am also getting no error messages. Any ideas? Chrome Version 68.0.3440.106
{
"manifest_version": 2,
"name": "Composure",
"description": "Test Extension",
"version": "2.13.2",
"browser_action": {
"default_icon": "content/img/logo.png",
"default_popup": "content/hotbox.html"
},
"background": {
"scripts": ["content/hotbox.js"],
"persistent": false
},
"commands": {
"_execute_browser_action": {
"suggested_key": {
"mac": "Command+Shift+0"
}
},
"_execute_page_action": {
"suggested_key": {
"mac": "Command+Shift+1"
}
}
}
}