From 61ca6e63f7d1a9b2fb84288bc112c53410dd6dae Mon Sep 17 00:00:00 2001 From: Sangelo Date: Thu, 16 Nov 2023 14:48:41 +0100 Subject: [PATCH] [c] bugfix --- src/routes/Socials.svelte | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/routes/Socials.svelte b/src/routes/Socials.svelte index bbcf7f6..6dcaeb3 100644 --- a/src/routes/Socials.svelte +++ b/src/routes/Socials.svelte @@ -84,13 +84,20 @@ smoothScrollTo('home'); } - function handleKeydown(event: KeyboardEvent) { + function handleKeydownHome(event: KeyboardEvent) { // Trigger redirection on Enter key or Space bar if (event.key === 'Enter' || event.key === ' ') { redirectToHome(); } } + function handleKeydownToggleMore(event: KeyboardEvent) { + // Trigger redirection on Enter key or Space bar + if (event.key === 'Enter' || event.key === ' ') { + toggleShowMore(); + } + } + function openWebsite(url: string) { goto(url); } @@ -104,6 +111,7 @@ href="https://discord.com/users/373525255102136341" target="_blank" rel="noopener noreferrer" + tabindex="0" class="round-button button discord" aria-label="Discord" > @@ -116,6 +124,7 @@ href="https://youtube.com/@Sangeloo" target="_blank" rel="noopener noreferrer" + tabindex="0" class="round-button button youtube" aria-label="YouTube" > @@ -128,6 +137,7 @@ href="https://github.com/SangeloDev" target="_blank" rel="noopener noreferrer" + tabindex="0" class="round-button button github" aria-label="GitHub" > @@ -140,6 +150,7 @@ href="mailto:contact@sangelo.space" target="_blank" rel="noopener noreferrer" + tabindex="0" class="round-button button email" aria-label="Email" > @@ -156,6 +167,7 @@ href="https://steamcommunity.com/id/sangeloo" target="_blank" rel="noopener noreferrer" + tabindex="0" class="round-button button steam" aria-label="Steam" > @@ -168,6 +180,7 @@ href="https://matrix.to/#/@sangelo:matrix.org" target="_blank" rel="noopener noreferrer" + tabindex="0" class="round-button button matrix" aria-label="Matrix" > @@ -180,6 +193,7 @@ href="https://gitpot.dev/Sangelo" target="_blank" rel="noopener noreferrer" + tabindex="0" class="round-button button gitpot" aria-label="Gitpot" > @@ -249,6 +263,7 @@ href="https://mas.to/@sangelo" target="_blank" rel="noopener noreferrer" + tabindex="0" class="round-button button mastodon" aria-label="Mastodon" > @@ -262,7 +277,7 @@