Keyboard Commands

commands
Low RiskCategory: Browser UIView Official Docs

Technical Context

Allows the extension to register global keyboard shortcuts that work across the browser. Users can customize these shortcuts through chrome://extensions/shortcuts.

What This Means For You

The extension can respond to keyboard shortcuts you press, even when you are not clicking on it. You can customize these shortcuts in Chrome's extension settings.

Related APIs

This permission enables access to these Chrome APIs:

chrome.commands

Common Use Cases

  • Quick-access tools
  • Screenshot extensions
  • Productivity apps

How to Declare in manifest.json

Add the "commands" permission to your extension manifest:

{
  "manifest_version": 3,
  "name": "My Extension",
  "permissions": [
    "commands"
  ]
}

Related Permissions