If in the tab development tools
-> extensions
-> keyboard shortcuts
I added a shortcut eg Ctrl + b
Then if someone else installs the extension on their computer this shortcut from the machine will work, Will anyone have to add it again in the 'keyboard shortcuts' tab? I think I once read that the shortcut to activate the extension can be set in the file manifest.json
.
Does anyone know how to set this shortcut in the manifest.json
file?
From the Chrome Docs
You must have a "manifest_version" of at least 2 to use this API.
{
"name": "My extension",
"commands": {
"toggle-feature-foo": {
"suggested_key": {
"default": "Ctrl+Shift+Y",
"mac": "Command+Shift+Y"
},
"description": "Toggle feature foo",
"global": true
}
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.