Skip to content

Commit 201bf2b

Browse files
committed
allow enter key press to trigger api input save
1 parent 03728be commit 201bf2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/components/with_api_select.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const WithApiSelect: Component<WithApiSelectProps> = (props) => {
5656
classList={{
5757
"input-bordered": editMode(),
5858
}}
59+
onkeydown={(ev) => { if (ev.key === "Enter" && editMode()) validateAPI() }}
5960
type="url"
6061
readonly={!editMode()}
6162
placeholder="e.g. https://example.com/api"

0 commit comments

Comments
 (0)