diff --git a/rsconcept/frontend/src/pages/RSFormPage/RSTabs.tsx b/rsconcept/frontend/src/pages/RSFormPage/RSTabs.tsx index b2bf12ad..5315eab8 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/RSTabs.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/RSTabs.tsx @@ -107,7 +107,22 @@ function RSTabs() { [router, schema, activeTab, version] ); - function onSelectTab(index: number) { + function onSelectTab(index: number, last: number, event: Event) { + if (last === index) { + return; + } + if (event.type == 'keydown') { + const kbEvent = event as KeyboardEvent; + if (kbEvent.altKey) { + if (kbEvent.code === 'ArrowLeft') { + router.back(); + return; + } else if (kbEvent.code === 'ArrowRight') { + router.forward(); + return; + } + } + } navigateTab(index, selected.length > 0 ? selected.at(-1) : undefined); }