allow Enter on band plan input

This commit is contained in:
Wolfgang 2024-05-15 21:00:20 +02:00
parent 4e908e6016
commit 6853d7ca9a

View file

@ -36,6 +36,12 @@ div#togglebuttons>button {
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
update_plan(); update_plan();
document.getElementById("sel_plan").addEventListener("keydown", (event) => {
if (event.key === 'Enter') {
update_plan()
}
});
}); });
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars