{#- chirp-ui: Keyboard shortcuts help A modal listing all keyboard shortcuts, rendered from the declarative shortcuts.py catalog. The same catalog drives the chirpuiShortcuts handler (via shortcuts_json), so the modal can never advertise a binding the handler does not run (open-webui #17015). Usage: {% from "chirpui/shortcuts_help.html" import shortcuts_help, shortcuts_help_trigger %} {{ shortcuts_help_trigger() }} {{ shortcuts_help() }} -#} {% from "chirpui/kbd.html" import kbd %} {% def shortcuts_help(dialog_id="shortcuts-help", title="Keyboard shortcuts") %}

{{ title }}

{% for category, items in shortcuts_by_category().items() %}

{{ category }}

{% for sc in items %}
{{ sc.label }}
{{ kbd(sc.keys, size="sm") }}
{% end %}
{% end %}
{% end %} {% def shortcuts_help_trigger(target="shortcuts-help", label="Keyboard shortcuts", cls="") %} {% end %}