There was an error while loading. Please reload this page.
1 parent ef4c5ae commit 1771d11Copy full SHA for 1771d11
1 file changed
frontend/src/lib/CreateWorktreeDialog.svelte
@@ -43,25 +43,13 @@
43
}
44
});
45
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
-
57
const btn =
58
"px-3 py-1.5 rounded-md border border-edge bg-surface text-primary text-xs cursor-pointer hover:bg-hover";
59
</script>
60
61
<dialog
62
bind:this={dialogEl}
63
onclose={oncancel}
64
- onkeydown={handleKeydown}
65
class="bg-sidebar text-primary border border-edge rounded-xl p-6 max-w-[380px] w-[90%]"
66
>
67
<form
0 commit comments