Renders inline text visual tags mimicking keyboard keys to highlight shortcuts or hotkey combinations.
| Surface | Note |
|---|---|
| googlechat | Discards button styles and shows plain text characters in brackets. |
| Key cap shadows and rounded corners are flattened by client processors. |
| Field | Type | |
|---|---|---|
| keys | array. Individual key characters like Ctrl, Shift, or C to join. | required |
| action | string. The function or command triggered by the keystroke combination. | required |
{
"type": "keyboard_shortcut",
"keys": [
"Ctrl",
"Shift",
"K"
],
"action": "submit"
}
{
"identifier": "urn:air:a2uicatalog.ai:atom:keyboard_shortcut",
"displayName": "Keyboard Shortcut",
"type": "application/vnd.a2ui.atom+json",
"url": "https://a2uicatalog.ai/atoms/keyboard_shortcut",
"capabilities": [
"web",
"apps-script-web"
],
"description": "Renders inline text visual tags mimicking keyboard keys to highlight shortcuts or hotkey combinations.",
"representativeQueries": [
"show a display visual keyboard key combinations for application shortcuts and hotkeys",
"renders inline text visual tags mimicking keyboard keys to highlight shortcuts or hotkey combination",
"render a keyboard shortcut"
]
}
The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.
git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →