Merge pull request #628 from STRML/fix/remove-cmd-number-shortcut

fix: remove Cmd+1..9 company-switch shortcut
This commit is contained in:
Dotta
2026-03-11 21:12:10 -05:00
committed by GitHub
3 changed files with 3 additions and 22 deletions

View File

@@ -104,23 +104,12 @@ export function Layout() {
const togglePanel = togglePanelVisible;
// Cmd+1..9 to switch companies
const switchCompany = useCallback(
(index: number) => {
if (index < companies.length) {
setSelectedCompanyId(companies[index]!.id);
}
},
[companies, setSelectedCompanyId],
);
useCompanyPageMemory();
useKeyboardShortcuts({
onNewIssue: () => openNewIssue(),
onToggleSidebar: toggleSidebar,
onTogglePanel: togglePanel,
onSwitchCompany: switchCompany,
});
useEffect(() => {