fix: make AI panel shortcut command-only

This commit is contained in:
lucaronin
2026-04-08 21:05:16 +02:00
parent 3feb167b12
commit c3a9400f35
2 changed files with 26 additions and 7 deletions

View File

@@ -201,6 +201,14 @@ describe('useAppKeyboard', () => {
})
})
it('Ctrl+Shift+L does not trigger toggle AI chat', () => {
const actions = makeActions()
const onToggleAIChat = vi.fn()
renderHook(() => useAppKeyboard({ ...actions, onToggleAIChat }))
fireKey('l', { ctrlKey: true, shiftKey: true })
expect(onToggleAIChat).not.toHaveBeenCalled()
})
it('Cmd+I does not trigger AI chat (reserved for italic)', () => {
const actions = makeActions()
const onToggleAIChat = vi.fn()