From abaf57c687ab1fa1f07612dce13808bb5e050d25 Mon Sep 17 00:00:00 2001 From: Zdog1206 <148791675+Zdog1206@users.noreply.github.com> Date: Thu, 12 Feb 2026 16:10:44 -0500 Subject: [PATCH 1/2] Update useSelectableCollection.ts Fix issue #9648 such that pressing CMD + left/right arrow actually triggers the browser's forward and back actions instead of moving between the tabs on the screen. --- packages/@react-aria/selection/src/useSelectableCollection.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/@react-aria/selection/src/useSelectableCollection.ts b/packages/@react-aria/selection/src/useSelectableCollection.ts index 796d7dcaa60..c33468d3076 100644 --- a/packages/@react-aria/selection/src/useSelectableCollection.ts +++ b/packages/@react-aria/selection/src/useSelectableCollection.ts @@ -168,6 +168,10 @@ export function useSelectableCollection(options: AriaSelectableCollectionOptions } }; + if ((e.metaKey || e.altKey) && e.key.startsWith('Arrow')) { + return; + } + switch (e.key) { case 'ArrowDown': { if (delegate.getKeyBelow) { From ceee89e642eec2f89a5e96a8bb573dccb9da26a2 Mon Sep 17 00:00:00 2001 From: Zdog1206 <148791675+Zdog1206@users.noreply.github.com> Date: Thu, 12 Feb 2026 16:22:45 -0500 Subject: [PATCH 2/2] Update useSelectableCollection.ts Another user requested the code be written slightly differently to avoid issues in other parts of the program. --- packages/@react-aria/selection/src/useSelectableCollection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@react-aria/selection/src/useSelectableCollection.ts b/packages/@react-aria/selection/src/useSelectableCollection.ts index c33468d3076..a0de95bf296 100644 --- a/packages/@react-aria/selection/src/useSelectableCollection.ts +++ b/packages/@react-aria/selection/src/useSelectableCollection.ts @@ -168,7 +168,7 @@ export function useSelectableCollection(options: AriaSelectableCollectionOptions } }; - if ((e.metaKey || e.altKey) && e.key.startsWith('Arrow')) { + if (manager.selectionMode === 'single' && (e.metaKey || e.altKey)) { return; }