From 5e80fe0feb32429f0a6e89a0aa3c7fb31f6f8c56 Mon Sep 17 00:00:00 2001 From: MyLuxy <240354279+MyLuxy@users.noreply.github.com> Date: Fri, 16 Oct 2026 15:30:25 +0200 Subject: [PATCH] fix: l1 and r1 follow right-to-left sections --- app/ui/Header.jsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/ui/Header.jsx b/app/ui/Header.jsx index c721050..3a02043 100644 --- a/app/ui/Header.jsx +++ b/app/ui/Header.jsx @@ -45,9 +45,11 @@ import { FocusScope, Text, View } from '@ps5-react/core'; } if (action !== "l1" && action !== "r1") return false; setBrowsing(false); - if (action === "r1" && section === "files") setChoosingLanguage(true); + // Right-to-left the sections run leftward, so L1 is the one that moves on (issue #30). + const forward = action === (rtl ? "l1" : "r1"); + if (forward && section === "files") setChoosingLanguage(true); else - step(action === "r1"); + step(forward); return true; }; const onBack = () => { @@ -74,7 +76,7 @@ import { FocusScope, Text, View } from '@ps5-react/core'; } ) }), /* @__PURE__ */ (0, jsxs)(View, { style: { flexDirection: "row", alignItems: "center", gap: 6 }, children: [ - /* @__PURE__ */ (0, jsx)(ButtonGlyph, { button: "l1" }), + /* @__PURE__ */ (0, jsx)(ButtonGlyph, { button: rtl ? "r1" : "l1" }), /* @__PURE__ */ (0, jsx)( NavItem, { @@ -202,7 +204,7 @@ import { FocusScope, Text, View } from '@ps5-react/core'; ...focusEnd(rtl, "nav:language") } ), - /* @__PURE__ */ (0, jsx)(ButtonGlyph, { button: "r1" }) + /* @__PURE__ */ (0, jsx)(ButtonGlyph, { button: rtl ? "l1" : "r1" }) ] }) ] }) ] }) }) })