Fixes https://github.com/twentyhq/twenty/issues/11988 ## Description The issue came from `RecordTableBodyFocusClickOutsideEffect`. When clicking outside the table with the side panel opened, two click outside listeners were triggered: the one which closes the side panel and the one which leaves the table focus. There was a race condition and the leave table focus was executed first, changing the hotkey scope. The side panel closure wasn't executed because the hotkey scope was wrong. ## Fix Only leave the table focus if the hotkey scope is `TableFocus` ## Videos Before: https://github.com/user-attachments/assets/0ea666a6-c212-4b94-b89b-49211d18a13b After: https://github.com/user-attachments/assets/2ec6d593-ff65-4cbf-ac92-a0cfbd7dfd8b