Revert "feat: add customizable keyboard navigation"

This commit is contained in:
Xylight authored and GitHub committed 2025-08-15 06:31:23 -07:00
1 parent 4e7c37bd89
commit f9a6e775f3
17 files changed
+39 -306

No files matched your search

+4 -8
View File
@@ -29,21 +29,17 @@
let { alt = '', class: clazz = '', children }: Props = $props()
</script>
<svelte:body
onkeydown={e => {
if (e.key == 'Escape' && (page.state.openImage || '') != '') history.back()
}}
/>
{#if page.state.openImage || '' != ''}
<!-- svelte-ignore a11y_click_events_have_key_events -->
<!-- svelte-ignore a11y_no_static_element_interactions -->
<div
class="fixed top-0 left-0 w-screen h-svh overflow-auto bg-white/50 dark:bg-black/50
flex flex-col z-100 backdrop-blur-xs"
transition:fade={{ duration: 150 }}
use:focusTrap
onclick={() => history.back()}
onkeydown={e => {
if (e.key == 'Escape') history.back()
}}
use:focusTrap
>
<img
width={800}