From adbf3be6ec40872574684688f470e6bf0acb91a8 Mon Sep 17 00:00:00 2001 From: David <97603719+Commodore64user@users.noreply.github.com> Date: Sat, 7 Sep 2024 19:53:14 +0100 Subject: [PATCH] [Dispatcher] new events for selecting links (#12474) --- frontend/dispatcher.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/dispatcher.lua b/frontend/dispatcher.lua index 812cd7415..39c88cd99 100644 --- a/frontend/dispatcher.lua +++ b/frontend/dispatcher.lua @@ -164,6 +164,8 @@ local settingsList = { next_location = {category="none", event="GoForwardLink", arg=true, title=_("Forward to next location"), reader=true}, follow_nearest_link = {category="arg", event="GoToPageLink", arg={pos={x=0,y=0}}, title=_("Follow nearest link"), reader=true}, follow_nearest_internal_link = {category="arg", event="GoToInternalPageLink", arg={pos={x=0,y=0}}, title=_("Follow nearest internal link"), reader=true}, + select_prev_page_link = { category="none", event = "SelectPrevPageLink", title=_("Select previous link in current page"), reader=true, condition=not Device:isTouchDevice()}, + select_next_page_link = { category="none", event = "SelectNextPageLink", title=_("Select next link in current page"), reader=true, condition=not Device:isTouchDevice()}, add_location_to_history = {category="none", event="AddCurrentLocationToStack", arg=true, title=_("Add current location to history"), reader=true}, clear_location_history = {category="none", event="ClearLocationStack", arg=true, title=_("Clear location history"), reader=true, separator=true}, ---- @@ -392,6 +394,8 @@ local dispatcher_menu_order = { "next_location", "follow_nearest_link", "follow_nearest_internal_link", + "select_prev_page_link", + "select_next_page_link", "add_location_to_history", "clear_location_history", ----