Fix hover on table cells when the command menu is opened (#10446)

This PR allows the table cell hover to be accessible even when the
command menu is opened.
I extracted the hotkeys logic from `RecordTableCellSoftFocusMode` into
`RecordTableCellSoftFocusModeHotkeysSetterEffect`. This component is
mounted conditionally if the hotkey scope is `TableSoftFocus`. By doing
so, the table cell hotkey scopes are not available when the command menu
is opened.

Before


https://github.com/user-attachments/assets/f0925565-f00a-4962-b18d-3c1617f77dd0


After


https://github.com/user-attachments/assets/49ec9195-3110-46d7-abb6-12854a8bb991

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
Raphaël Bosi
2025-02-24 17:09:23 +01:00
committed by GitHub
parent e4f06a7c97
commit 9c7213a1e1
15 changed files with 172 additions and 187 deletions

View File

@ -45,7 +45,7 @@ export const RecordTableDecorator: Decorator = (Story) => {
onOpenTableCell: () => {},
onActionMenuDropdownOpened: () => {},
onMoveFocus: () => {},
onMoveSoftFocusToCell: () => {},
onMoveSoftFocusToCurrentCell: () => {},
onUpsertRecord: () => {},
}}
>