feat: add customizing keybinds

This commit is contained in:
James Xylight committed 2025-08-07 19:11:51 -07:00
1 parent 2342e89f3d
commit e75cd00901
9 files changed
+113 -63

No files matched your search

+7 -5
View File
@@ -29,16 +29,18 @@
let { alt = '', class: clazz = '', children }: Props = $props()
</script>
<svelte:body
onclick={() => history.back()}
onkeydown={e => {
if (e.key == 'Escape') history.back()
}}
/>
{#if page.state.openImage || '' != ''}
<!-- 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 }}
onclick={() => history.back()}
onkeydown={e => {
if (e.key == 'Escape') history.back()
}}
use:focusTrap
>
<img