[Pagination] Fix the keyboard shortcuts (#904)

This commit is contained in:
Cinder 2025-02-11 22:25:58 -08:00 committed by GitHub
parent ac38fd11e7
commit 54c490b573
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,12 +87,12 @@ module PaginationHelper
html = "".html_safe html = "".html_safe
if disabled if disabled
html << tag.span(class: "next", id: "paginator-next", data: { shortcut: "a left" }) do html << tag.span(class: "next", id: "paginator-next", data: { shortcut: "d right" }) do
concat tag.span("Next") concat tag.span("Next")
concat svg_icon(:chevron_right) concat svg_icon(:chevron_right)
end end
else else
html << link_to(link, class: "next", id: "paginator-prev", rel: "next", data: { shortcut: "a left" }) do html << link_to(link, class: "next", id: "paginator-next", rel: "next", data: { shortcut: "d right" }) do
concat tag.span("Next") concat tag.span("Next")
concat svg_icon(:chevron_right) concat svg_icon(:chevron_right)
end end