Skip to content

Commit

Permalink
fix: placeholder tab completion
Browse files Browse the repository at this point in the history
  • Loading branch information
yutakobayashidev committed Oct 12, 2023
1 parent e9fe27b commit d190ac9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/app/cmd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ export default function CommandMenu({
content: input,
role: "user",
});
} else if (e.key === "Tab") {
e.preventDefault();
setInput(placeholder);
}
}}
onValueChange={(value) => {
Expand Down

1 comment on commit d190ac9

@vercel
Copy link

@vercel vercel bot commented on d190ac9 Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.