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:
@ -147,6 +147,7 @@ export const PageChangeEffect = () => {
|
||||
setHotkeyScope(RecordIndexHotkeyScope.RecordIndex, {
|
||||
goto: true,
|
||||
keyboardShortcutMenu: true,
|
||||
searchRecords: true,
|
||||
});
|
||||
break;
|
||||
}
|
||||
@ -154,6 +155,7 @@ export const PageChangeEffect = () => {
|
||||
setHotkeyScope(PageHotkeyScope.RecordShowPage, {
|
||||
goto: true,
|
||||
keyboardShortcutMenu: true,
|
||||
searchRecords: true,
|
||||
});
|
||||
break;
|
||||
}
|
||||
@ -191,6 +193,7 @@ export const PageChangeEffect = () => {
|
||||
keyboardShortcutMenu: false,
|
||||
commandMenu: false,
|
||||
commandMenuOpen: false,
|
||||
searchRecords: false,
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user