Skip to content

Commit

Permalink
Update JSONSchemaInput.js
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Apr 17, 2024
1 parent 1a8d8d7 commit d1b31e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/renderer/src/stories/JSONSchemaInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,11 @@ export class JSONSchemaInput extends LitElement {
},
});

input.addEventListener("keydown", (ev) => {
if (ev.key === "Enter") submitButton.onClick();
});


return html`<div style="width: 100%;">
<div style="display: flex; gap: 10px; align-items: center;">${input}${submitButton}</div>
${list}
Expand Down

0 comments on commit d1b31e7

Please sign in to comment.