Fixes https://github.com/twentyhq/twenty/issues/13139 introduced by https://github.com/twentyhq/twenty/pull/13127 The record table click outside was triggered when it shouldn't have been (clicking inside a dropdown in the side panel). This PR fixes it by checking the type of the focused element before triggering the click outside. Before, we had a check on the current hotkey scope but I removed this part during the refactoring and I didn't replace it thinking that it wasn't useful anymore. Video QA: https://github.com/user-attachments/assets/68baa9e6-2593-4840-923b-d631c806d9ea