mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
593 B
593 B
chrome.commands
This sample demonstrates the chrome.commands API by creating a new keyboard macro for switching tabs in the browser window.
Overview
The extension sets Ctrl+Shift+Left and Ctrl+Shift+Right as command inputs in the manifest, and uses chrome.commands.onCommand.addListener() to trigger switching tabs.
Running this extension
- Clone this repository.
- Load this directory in Chrome as an unpacked extension.
- Input the keyboard commands to switch between tabs.