Fix hotkeys for tasks page (#1034)

- fix hotkeys for tasks
This commit is contained in:
brendanlaschke
2023-08-02 07:11:07 +02:00
committed by GitHub
parent 991cadbe48
commit 0ad35549ac
5 changed files with 17 additions and 3 deletions

View File

@ -91,6 +91,11 @@ export function AuthAutoRouter() {
setHotkeyScope(PageHotkeyScope.OpportunitiesPage, { goto: true });
break;
}
case isMatchingLocation(AppPath.TasksPage): {
setHotkeyScope(PageHotkeyScope.TaskPage, { goto: true });
break;
}
case isMatchingLocation(AppPath.SignIn): {
setHotkeyScope(PageHotkeyScope.SignInUp);
break;

View File

@ -5,6 +5,7 @@ export function GotoHotkeysHooks() {
useGoToHotkeys('c', '/companies');
useGoToHotkeys('o', '/opportunities');
useGoToHotkeys('s', '/settings/profile');
useGoToHotkeys('t', '/tasks');
return <></>;
}