研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >ShortcutRegistry>getKeyCodesByShortcutName
ShortcutRegistry.getKeyCodesByShortcutName() 方法
获取注册具有指定名称的快捷键的序列化按键代码。
Signature:
getKeyCodesByShortcutName(shortcutName: string): string[];
参数
参数 |
类型 |
说明 |
shortcutName |
字符串 |
快捷方式的名称。 |
返回:
字符串[]
包含注册快捷方式的所有按键代码的数组。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-11。
[null,null,["最后更新时间 (UTC):2024-10-11。"],[[["The `getKeyCodesByShortcutName` method retrieves the key codes associated with a specific shortcut name within Blockly's ShortcutRegistry."],["Given a shortcut name as input, it returns an array of string-based key codes representing that shortcut."],["This function is useful for identifying how a specific shortcut is triggered within the Blockly environment."]]],[]]