Skip to content

Commit

Permalink
Focus confirm password input #273
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Dec 7, 2023
1 parent 6a34ca8 commit 302b06c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interface/windows/confirm/confirm.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="transparent-900 m-auto mt-40 mb-60 w-3/5 rounded-2xl p-10 text-center">
<div class="transparent-900 m-auto mb-60 mt-40 w-3/5 rounded-2xl p-10 text-center">
<h1>Welcome back!</h1>

<div class="mx-auto flex w-4/5 flex-col items-center justify-center rounded-2xl p-10">
Expand Down Expand Up @@ -49,6 +49,8 @@
import { confirmPassword, showPassword } from "./index"
onMount(() => {
document.querySelector<HTMLInputElement>(".passwordInput").focus()
document.querySelector<HTMLInputElement>(".passwordInput").addEventListener("keypress", (event) => {
if (event.key === "Enter") {
confirmPassword()
Expand Down

0 comments on commit 302b06c

Please sign in to comment.