{#if withoutState} {#if shortcut} {/if} {:else} queryCommandState(key)} let:state={active} let:updateState > { action(); updateState(event); }} > {#if shortcut} { action(); updateState(event); }} /> {/if} {/if}