onOpenMenu(figure)}
onkeydown={(e) => {
if (e.key === 'Enter' || e.key === ' ') onOpenMenu(figure);
}}
>
{#if canEnterInit}
(initDraft = '')}
maxlength={2}
inputmode="numeric"
autocomplete="off"
aria-label="Initiative"
/>
{:else if showInitNumber}
{initDisplay}
{/if}
onOpenMenu(figure)}
onkeydown={(e) => {
if (e.key === 'Enter' || e.key === ' ') onOpenMenu(figure);
}}
>
{cs.display}
{cs.health} / {cs.maxHealth}
{#each cs.conditions as condIndex}
{conditionLabel(condIndex)}
{/each}
{#if !isObjective}
XP {cs.xp}
{/if}
{cs.level}
{
if (e.key === 'Enter' || e.key === ' ') onTurnTap();
}}
>