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 に従っています。