調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >IKeyboardAccessible >onShortcut
IKeyboardAccessible.onShortcut() メソッド
指定されたキーボード ショートカットを処理します。
署名:
onShortcut(shortcut: KeyboardShortcut): boolean;
パラメータ
パラメータ |
型 |
説明 |
ショートカット |
KeyboardShortcut |
処理するショートカット。 |
戻り値:
ブール値
ショートカットが処理されている場合は true、そうでない場合は false。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-14 UTC。
[null,null,["最終更新日 2024-10-14 UTC。"],[[["The `onShortcut` method in `IKeyboardAccessible` interface handles keyboard shortcuts."],["This method receives a `KeyboardShortcut` object and determines if the action was handled, returning `true` if so and `false` otherwise."]]],["The `onShortcut` method, part of the `IKeyboardAccessible` interface, handles keyboard shortcuts. It accepts a `KeyboardShortcut` object as input. The method's purpose is to determine if a given shortcut has been processed. It returns a boolean value: `true` if the shortcut was handled, and `false` if it was not. The input parameter, `shortcut`, provides details on which keyboard shortcut to evaluate.\n"]]