diff --git a/src/components/Login.svelte b/src/components/Login.svelte index 3fd2a127..a5fbaa25 100644 --- a/src/components/Login.svelte +++ b/src/components/Login.svelte @@ -7,6 +7,7 @@ OpenAPI.BASE = config.baseurl; import Toastify from "toastify-js"; import "toastify-js/src/toastify.css"; + import { init } from "svelte/internal"; let usersUsername; let usersPassword = ""; let last_loginclick_processed = true; @@ -62,41 +63,45 @@ }).showToast(); } }; + function handleKeydown(e) { + if (e.keyCode === 13) { + login(); + } + } -
- {$_('application_name')} -
-- {$_('log_in_to_your_account')} -
+{$_('application_name')}
+{$_('log_in_to_your_account')}