fix(shortcuts): share one shortcut label formatter between settings and the session picker

This commit is contained in:
Chris Scott committed 2026-10-14 01:14:55 -04:00
1 parent 18102a3ce8
commit c41eff304c
5 files changed
+43 -19

No files matched your search

@@ -578,6 +578,17 @@ describe('SessionPickerDialog', () => {
expect(screen.getByText(/Ctrl\+G sessions/)).toBeInTheDocument()
})
it('shows the normalized leader, arrow and key in the footer for a leader switch binding', () => {
mocks.preferences = {
keyboardShortcuts: { switchPickerTab: 'G' },
directShortcuts: [],
leaderKey: 'Ctrl+X',
}
renderPicker()
expect(screen.getByText(/Ctrl\+X → G projects/)).toBeInTheDocument()
})
it('no longer switches tabs on Ctrl+O', () => {
renderPicker()