From 80d30a8e5425f4041e79c299095c36386b8d7777 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Thu, 7 Jan 2021 20:23:45 +0100 Subject: [PATCH] =?UTF-8?q?=E2=96=B6=20ENTER=20key=20submit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #26 --- src/components/AddTrackModal.svelte | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/AddTrackModal.svelte b/src/components/AddTrackModal.svelte index c0f71f08..6f94c10c 100644 --- a/src/components/AddTrackModal.svelte +++ b/src/components/AddTrackModal.svelte @@ -25,6 +25,12 @@ if (e.key === "Escape") { modal_open = false; } + if (e.keyCode === 13) { + if (createbtnenabled === true) { + createbtnenabled = false; + submit(); + } + } }; })(); function submit() {