Navigate a scroll group's reference history in a PHYSICAL direction ('left' / 'right'),
resolving it to a logical back/forward for the current UI layout direction (RTL swaps the pair,
via resolveReferenceHistoryDirection). Backs the navigateLeft/RightInReferenceHistory
commands so the main-process keyboard handler can dispatch the physical key directly and stay
direction-agnostic.
Navigate a scroll group's reference history in a PHYSICAL direction (
'left'/'right'), resolving it to a logical back/forward for the current UI layout direction (RTL swaps the pair, via resolveReferenceHistoryDirection). Backs thenavigateLeft/RightInReferenceHistorycommands so the main-process keyboard handler can dispatch the physical key directly and stay direction-agnostic.