{#each scenes as scene (scene.id)}
handleSceneClick(scene.id)}
onkeydown={(e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
handleSceneClick(scene.id);
}
}}
style="background-color: {scene.backgroundColor}"
>
{scene.name}
{scene.layers.length} layers
{#if onSceneDelete && scenes.length > 1 && scene.id !== activeSceneId}
{/if}
{/each}
{#if onSceneCreate}
{/if}