Keyboard Shortcut

Renders inline text visual tags mimicking keyboard keys to highlight shortcuts or hotkey combinations.

Surfaces
webapps-script-web
Degraded on
SurfaceNote
googlechatDiscards button styles and shows plain text characters in brackets.
emailKey cap shadows and rounded corners are flattened by client processors.
Fields
FieldType
keysarray. Individual key characters like Ctrl, Shift, or C to join.required
actionstring. The function or command triggered by the keystroke combination.required
Example payload
{
  "type": "keyboard_shortcut",
  "keys": [
    "Ctrl",
    "Shift",
    "K"
  ],
  "action": "submit"
}
ARD catalog entry
{
  "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"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

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 →