{#if $showCommandPalette}
($showCommandPalette = false)} onkeydown={handleKeydown}>
e.stopPropagation()} onkeydown={(e) => e.stopPropagation()}>
{#each filteredCommands as cmd, i (cmd.id)}
cmd.action()} onmouseenter={() => (selectedIndex = i)} >
{cmd.label}
{#if cmd.shortcut}
{cmd.shortcut}
{/if}
{/each}
{/if}