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