feat: add enter to submit

This commit is contained in:
2025-01-26 17:43:29 +00:00
parent 9ecac1b30f
commit df9be06aa6
2 changed files with 31 additions and 14 deletions

View File

@@ -116,6 +116,11 @@ function AddApplicationForm() {
className="px-2"
type="text"
placeholder="Application name"
onKeyDown={(event) => {
if (event.key === "Enter") {
onAddButtonClick()
}
}}
/>
) : null}
<div className="flex flex-row space-x-2 mt-2">