{#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={createShortcut} > {:else} document.queryCommandState(key)} let:state={active} let:updateState > { document.execCommand(key); updateState(event); }} on:mount={createShortcut} > {/if}