commands
commands
manifest.json キーを使って、登録したコマンドをユーザーが実行するのをリッスンします。
型
- commands.Command (en-US)
- コマンドを表す型。これは manifest.json の
commands
キーのコマンドで指定された情報が入っています。
関数
- commands.getAll (en-US)
-
拡張機能用のすべての登録済みコマンドを取得します。
イベント
- commands.onCommand (en-US)
-
関連付けされたキーボードショートカットを使ってコマンドが実行された時に発火します。
ブラウザ実装状況
BCD tables only load in the browser
Example extensions
謝辞
この API は Chromium の chrome.commands
API に基づいています。
Microsoft Edge での実装状況は Microsoft Corporation から提供されたものであり、ここでは Creative Commons Attribution 3.0 United States License に従っています。