feat: add customizing keybinds
This commit is contained in:
9 files changed
+113
-63
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user