Fix shortcuts inconsistencies (#12624)

Fixes https://github.com/twentyhq/core-team-issues/issues/1093

The search shortcut and the go to shortcuts were not always available.
They worked after a refresh but not when clicking outside of a table or
a board, or when a table row or board card was focus.
This PR fixes this:


https://github.com/user-attachments/assets/f454037b-9dfd-4f9c-9124-43f4b8b5cec8
This commit is contained in:
Raphaël Bosi
2025-06-16 16:10:27 +02:00
committed by GitHub
parent e41d2f9f53
commit ed1593c089
13 changed files with 58 additions and 7 deletions

View File

@ -53,7 +53,7 @@ export const useCommandMenuHotKeys = () => {
openRecordsSearchPage();
},
false,
AppHotkeyScope.KeyboardShortcutMenu,
AppHotkeyScope.SearchRecords,
[openRecordsSearchPage],
{
ignoreModifiers: true,