From 54c490b57319f95468a7d442afe4f4c157c6416c Mon Sep 17 00:00:00 2001 From: Cinder Date: Tue, 11 Feb 2025 22:25:58 -0800 Subject: [PATCH] [Pagination] Fix the keyboard shortcuts (#904) --- app/helpers/pagination_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb index 919014c6c..8b55b9e01 100644 --- a/app/helpers/pagination_helper.rb +++ b/app/helpers/pagination_helper.rb @@ -87,12 +87,12 @@ module PaginationHelper html = "".html_safe 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 svg_icon(:chevron_right) end 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 svg_icon(:chevron_right) end