From d29f484993eb6e8915eca6f0912eb766657fe4fd Mon Sep 17 00:00:00 2001 From: patrickzerhusen Date: Sun, 19 Apr 2026 16:05:57 +0200 Subject: [PATCH] added user name submit with enter key --- public/js/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/js/app.js b/public/js/app.js index 314c3c4..38bb322 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -884,4 +884,9 @@ buildCategoryFilter(); loadContributions(); // Show Welcome Modal on first Visit -checkWelcomeModal(); \ No newline at end of file +checkWelcomeModal(); + +// Submits Login with Key Press +document.getElementById('user-name-input').addEventListener('keydown', function (e) { + if (e.key === 'Enter') submitLogin(); +}); \ No newline at end of file