From 6853d7ca9a1bfe3c0f56fea76f3dc041701da130 Mon Sep 17 00:00:00 2001 From: dm5wk Date: Wed, 15 May 2024 21:00:20 +0200 Subject: [PATCH] allow Enter on band plan input --- band-plan.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/band-plan.html b/band-plan.html index e2b7821..7968e94 100644 --- a/band-plan.html +++ b/band-plan.html @@ -36,6 +36,12 @@ div#togglebuttons>button { document.addEventListener('DOMContentLoaded', () => { update_plan(); + + document.getElementById("sel_plan").addEventListener("keydown", (event) => { + if (event.key === 'Enter') { + update_plan() + } + }); }); // eslint-disable-next-line no-unused-vars