{#if !compact}
{#if expanded || !collapsible}
{#each Object.entries(groupedShortcuts()) as [category, categoryShortcuts]}
{#if Object.keys(groupedShortcuts()).length > 1} {category} {/if}
{#each categoryShortcuts as shortcut}
{shortcut.label}
{#each shortcut.keys as key, i} {key} {#if i < shortcut.keys.length - 1} + {/if} {/each}
{/each}
{/each}
{/if}
{:else} {/if}