Skip to content

Commit 1d6d6ab

Browse files
fix(web): Enter adds highlighted project, Tab drills into directory
1 parent 9af229d commit 1d6d6ab

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

apps/web/src/components/AddProjectDialog.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ export function AddProjectDialog({ open, onOpenChange, onAddProject }: AddProjec
9696
const idx = Math.min(highlightedIndex, entries.length - 1);
9797
const entry = entries[idx];
9898
if (entry) {
99-
selectEntry(entry);
99+
onAddProject(entry.fullPath);
100+
onOpenChange(false);
100101
}
101102
} else if (inputValue.trim()) {
102103
onAddProject(inputValue.trim());
@@ -175,10 +176,7 @@ export function AddProjectDialog({ open, onOpenChange, onAddProject }: AddProjec
175176
)}
176177
</CommandPanel>
177178
<CommandFooter>
178-
<span>
179-
Tab to autocomplete &middot; Enter to drill down &middot; Enter on empty to add
180-
project
181-
</span>
179+
<span>Tab to autocomplete &middot; Enter to add project</span>
182180
</CommandFooter>
183181
</Command>
184182
</CommandDialogPopup>

0 commit comments

Comments
 (0)