{ if (e.target === e.currentTarget) tabStore.createNewTab(); }}
>
{#each userTabs as tab (tab.id)}
tabStore.switchTab(tab.id)}
onkeydown={(e) => { if (e.key === 'Enter' || e.key === ' ') tabStore.switchTab(tab.id); }}
tabindex="0"
>
{tabStore.shortHandleFor(tab.id)}
{tab.title}
{/each}