{#if withoutShortcut && withoutState} execCommand(key)}> {:else if withoutShortcut} queryCommandState(key)} let:state={active} let:updateState > { execCommand(key); updateState(event); }} > {:else if withoutState} execCommand(key)} on:mount={withButton(createShortcut)} > {:else} queryCommandState(key)} let:state={active} let:updateState > { execCommand(key); updateState(event); }} on:mount={withButton(createShortcut)} > {/if}