File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { MultilineInput } from './multiline-input'
77import { SelectableList } from './selectable-list'
88import { TerminalLink } from './terminal-link'
99import { useDirectoryBrowser } from '../hooks/use-directory-browser'
10+ import { cleanupRenderer } from '../utils/renderer-cleanup'
1011import { useLogo } from '../hooks/use-logo'
1112import { usePathTabCompletion } from '../hooks/use-path-tab-completion'
1213import { useSearchableList } from '../hooks/use-searchable-list'
@@ -245,6 +246,7 @@ export const ProjectPickerScreen: React.FC<ProjectPickerScreenProps> = ({
245246 }
246247 // Ctrl+C always quits
247248 if ( key . name === 'c' && key . ctrl ) {
249+ cleanupRenderer ( )
248250 process . exit ( 0 )
249251 return true
250252 }
Original file line number Diff line number Diff line change 11import { useKeyboard } from '@opentui/react'
22import { useCallback } from 'react'
33
4+ import { cleanupRenderer } from '../utils/renderer-cleanup'
5+
46import type { KeyEvent } from '@opentui/core'
57
68interface UseLoginKeyboardHandlersParams {
@@ -43,6 +45,7 @@ export function useLoginKeyboardHandlers({
4345 ) {
4446 key . preventDefault ( )
4547 }
48+ cleanupRenderer ( )
4649 process . exit ( 0 )
4750 }
4851
You can’t perform that action at this time.
0 commit comments