Enable Enter-Press for submit in modals.

This commit is contained in:
MaxJa4
2024-01-23 09:33:56 +01:00
parent 1a7d6cbe11
commit 2139b83174
7 changed files with 50 additions and 7 deletions

View File

@@ -111,6 +111,12 @@
alert('Fehler beim Laden der Einstellungen: ' + error.message);
});
});
settingsModal.addEventListener('keypress', event => {
if (event.key === 'Enter') {
submitButton.click();
}
});
}
});
</script>