Fix receive and send
This commit is contained in:
@@ -137,7 +137,11 @@ function MainContent(): React.ReactElement {
|
||||
if (dialog?.visible) return;
|
||||
|
||||
// Quit on 'q' or Ctrl+C
|
||||
if (input === 'q' || (key.ctrl && input === 'c')) {
|
||||
if (
|
||||
// Commenting out 'q'. Its annoying me - It activates in text inputs.
|
||||
// input === 'q'
|
||||
(key.ctrl && input === 'c')
|
||||
) {
|
||||
appContext.exit();
|
||||
exit();
|
||||
}
|
||||
@@ -179,8 +183,8 @@ function MainContent(): React.ReactElement {
|
||||
export function App({ config }: AppProps): React.ReactElement {
|
||||
const { exit } = useApp();
|
||||
|
||||
// Cleanup will be handled by React when components unmount
|
||||
const handleExit = () => {
|
||||
// Cleanup will be handled by React when components unmount
|
||||
exit();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user