From d1b31e78a2ad69434a99ecb1743afb742ad0b46b Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Wed, 17 Apr 2024 10:15:10 -0500 Subject: [PATCH 1/2] Update JSONSchemaInput.js --- src/renderer/src/stories/JSONSchemaInput.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/renderer/src/stories/JSONSchemaInput.js b/src/renderer/src/stories/JSONSchemaInput.js index 4241e833d..ee840d841 100644 --- a/src/renderer/src/stories/JSONSchemaInput.js +++ b/src/renderer/src/stories/JSONSchemaInput.js @@ -997,6 +997,11 @@ export class JSONSchemaInput extends LitElement { }, }); + input.addEventListener("keydown", (ev) => { + if (ev.key === "Enter") submitButton.onClick(); + }); + + return html`
${input}${submitButton}
${list} From 8a14e97e08a3c3977164e1bebea83fe94101f340 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 15:16:30 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/renderer/src/stories/JSONSchemaInput.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/renderer/src/stories/JSONSchemaInput.js b/src/renderer/src/stories/JSONSchemaInput.js index ee840d841..736eaa78b 100644 --- a/src/renderer/src/stories/JSONSchemaInput.js +++ b/src/renderer/src/stories/JSONSchemaInput.js @@ -1001,7 +1001,6 @@ export class JSONSchemaInput extends LitElement { if (ev.key === "Enter") submitButton.onClick(); }); - return html`
${input}${submitButton}
${list}