diff --git a/ui-tui/src/__tests__/constants.test.ts b/ui-tui/src/__tests__/constants.test.ts index 318ae71421..5f95078787 100644 --- a/ui-tui/src/__tests__/constants.test.ts +++ b/ui-tui/src/__tests__/constants.test.ts @@ -27,8 +27,9 @@ describe('constants', () => { }) it('documents Ctrl/Cmd+L as non-destructive redraw', () => { - expect(HOTKEYS.some(([, d]) => d === 'redraw / repaint')).toBe(true) - expect(HOTKEYS.some(([, d]) => d.includes('new session'))).toBe(false) + const hotkey = HOTKEYS.find(([k]) => k.endsWith('+L')) + expect(hotkey).toBeDefined() + expect(hotkey?.[1]).toBe('redraw / repaint') }) it('TOOL_VERBS maps known tools (verb-only, no emoji)', () => { diff --git a/ui-tui/src/app/useInputHandlers.ts b/ui-tui/src/app/useInputHandlers.ts index e8651cdd3f..fe143ee36a 100644 --- a/ui-tui/src/app/useInputHandlers.ts +++ b/ui-tui/src/app/useInputHandlers.ts @@ -381,7 +381,7 @@ export function useInputHandlers(ctx: InputHandlerContext): InputHandlerResult { if (isAction(key, ch, 'l')) { clearSelection() - return patchUiState(state => ({ ...state })) + return patchUiState({}) } if (isVoiceToggleKey(key, ch)) {