diff --git a/.changeset/ninety-spiders-do.md b/.changeset/ninety-spiders-do.md new file mode 100644 index 0000000..440a159 --- /dev/null +++ b/.changeset/ninety-spiders-do.md @@ -0,0 +1,5 @@ +--- +"gitarbor-tui": fix +--- + +Fix CTRL + C to exit the app diff --git a/src/App.tsx b/src/App.tsx index c6a61ff..9586911 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2084,6 +2084,12 @@ export function App({ cwd }: { cwd: string }) { ]; useKeyboard((key) => { + // CTRL+C: Exit immediately without confirmation + if (key.sequence === '\x03' || (key.name === 'c' && key.ctrl)) { + handleExit(); + return; + } + if ( showExitModal || showSettingsModal ||