mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
fix(shortcuts): share one shortcut label formatter between settings and the session picker
This commit is contained in:
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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user