blockly > IKeyboardAccessible > onShortcut
Metodo IKeyboardAccessible.onShortcut()
Consente di gestire la scorciatoia da tastiera specificata.
Firma:
onShortcut(shortcut: KeyboardShortcut): boolean;
Parametri
Parametro |
Tipo |
Descrizione |
scorciatoia |
KeyboardShortcut |
La scorciatoia da gestire. |
Resi:
booleano
True se la scorciatoia è stata gestita, false in caso contrario.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-10-14 UTC.
[null,null,["Ultimo aggiornamento 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"]]