blockly > 欄位 > onShortcut

Field.onShortcut() 方法

處理指定的鍵盤快速鍵。

Signature:

onShortcut(_shortcut: KeyboardShortcut): boolean;

參數

參數 類型 說明
_快速鍵 KeyboardShortcut 要處理的快速鍵。

傳回:

boolean

如果已處理捷徑,則為「true」,否則傳回「false」。