mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: fix keyboard nav to next/prev post
The exact search query was discarded.
This commit is contained in:
@ -69,12 +69,12 @@ class PostMainView {
|
|||||||
});
|
});
|
||||||
keyboard.bind(['a', 'left'], () => {
|
keyboard.bind(['a', 'left'], () => {
|
||||||
if (ctx.prevPostId) {
|
if (ctx.prevPostId) {
|
||||||
router.show(uri.formatClientLink('post', ctx.prevPostId));
|
router.show(ctx.getPostUrl(ctx.prevPostId, ctx.parameters));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
keyboard.bind(['d', 'right'], () => {
|
keyboard.bind(['d', 'right'], () => {
|
||||||
if (ctx.nextPostId) {
|
if (ctx.nextPostId) {
|
||||||
router.show(uri.formatClientLink('post', ctx.nextPostId));
|
router.show(ctx.getPostUrl(ctx.nextPostId, ctx.parameters));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user