Skip to content

Commit 1771d11

Browse files
centdixclaude
andauthored
Remove arrow key navigation from new worktree dialog (#29)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ef4c5ae commit 1771d11

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

frontend/src/lib/CreateWorktreeDialog.svelte

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,13 @@
4343
}
4444
});
4545
46-
function handleKeydown(e: KeyboardEvent) {
47-
if (e.key === "ArrowUp" || e.key === "ArrowDown") {
48-
e.preventDefault();
49-
const idx = profiles.findIndex((p) => p.name === profile);
50-
const next = e.key === "ArrowDown"
51-
? (idx + 1) % profiles.length
52-
: (idx - 1 + profiles.length) % profiles.length;
53-
profile = profiles[next].name;
54-
}
55-
}
56-
5746
const btn =
5847
"px-3 py-1.5 rounded-md border border-edge bg-surface text-primary text-xs cursor-pointer hover:bg-hover";
5948
</script>
6049

6150
<dialog
6251
bind:this={dialogEl}
6352
onclose={oncancel}
64-
onkeydown={handleKeydown}
6553
class="bg-sidebar text-primary border border-edge rounded-xl p-6 max-w-[380px] w-[90%]"
6654
>
6755
<form

0 commit comments

Comments
 (0)