Skip to content

Commit 2677983

Browse files
author
Llorenç
committed
Rename
1 parent 39e8682 commit 2677983

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • src/frontend/src/routes/(new-styling)/recovery-phrase

src/frontend/src/routes/(new-styling)/recovery-phrase/+page.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
import { t } from "$lib/stores/locale.store";
55
import { nonNullish } from "@dfinity/utils";
66
7-
const handleKeyDown = (event: KeyboardEvent, currentTabIndex: number) => {
7+
const handleKeyDownInput = (
8+
event: KeyboardEvent,
9+
currentTabIndex: number,
10+
) => {
811
if (event.key === "Enter" || event.key === " ") {
912
event.preventDefault();
1013
const nextTabIndex = currentTabIndex + 1;
@@ -41,7 +44,7 @@
4144
type="text"
4245
id={`recovery-phrase-${i}`}
4346
tabindex={i + 1}
44-
on:keydown={(e) => handleKeyDown(e, i + 1)}
47+
on:keydown={(e) => handleKeyDownInput(e, i + 1)}
4548
class="peer text-text-primary ring-border-secondary focus:ring-border-brand h-8 w-full rounded-full border-none bg-transparent pl-10 text-base ring outline-none ring-inset focus:ring-2"
4649
/>
4750
<!-- Left slot -->

0 commit comments

Comments
 (0)