forked from blisstown/campfire
fix navigation in post focus
This commit is contained in:
parent
ce1dfc388f
commit
6c19a4f3c9
4 changed files with 10 additions and 7 deletions
|
@ -16,8 +16,8 @@
|
|||
let aria_label = post.user.username + '; ' + post.text + '; ' + post.created_at;
|
||||
|
||||
function gotoPost() {
|
||||
if (focused) return;
|
||||
if (event.key && event.key !== "Enter") return;
|
||||
console.log(`/post/${post.id}`);
|
||||
goto(`/post/${post.id}`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue