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

+2 -2
View File
@@ -101,12 +101,12 @@
]}
id="post-{post.post.id.toString()}"
{onclick}
onkeydown={(e) => {
onkeydown={e => {
if (e.key === 'Enter') onclick(e)
keybindPost(e, post, voteComponent?.castVote)
}}
tabindex="0"
{style}
{@attach keybindPost(post, voteComponent?.castVote)}
>
<PostMeta
community={post.community}
@@ -171,7 +171,7 @@
})
</script>
<svelte:body {@attach keybindFeed} />
<svelte:body onkeydown={keybindFeed()} />
<ul class="flex flex-col list-none" bind:this={listEl}>
{#key posts}