tycono 0.1.96-beta.27 → 0.1.96-beta.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/tui/app.tsx +6 -7
package/package.json
CHANGED
package/src/tui/app.tsx
CHANGED
|
@@ -364,17 +364,16 @@ export const App: React.FC = () => {
|
|
|
364
364
|
}
|
|
365
365
|
}, [execute, addSystemMessage, addSystemLines, focusedWaveId, focusedWaveIndex, derivedWaveStatus, api.sessions.length, activeCount, waves, api.activeSessions, api.portSummary]);
|
|
366
366
|
|
|
367
|
-
// Global key handler: Tab to toggle mode, Ctrl+C
|
|
367
|
+
// Global key handler: Tab to toggle mode, Ctrl+C always exits
|
|
368
368
|
useInput((input, key) => {
|
|
369
|
-
if (mode === 'command' && key.tab) {
|
|
370
|
-
setMode('panel');
|
|
371
|
-
return;
|
|
372
|
-
}
|
|
373
|
-
// Ctrl+C in command mode: exit
|
|
374
369
|
if (key.ctrl && input === 'c') {
|
|
375
370
|
exit();
|
|
371
|
+
return;
|
|
376
372
|
}
|
|
377
|
-
|
|
373
|
+
if (mode === 'command' && key.tab) {
|
|
374
|
+
setMode('panel');
|
|
375
|
+
}
|
|
376
|
+
});
|
|
378
377
|
|
|
379
378
|
// Loading state
|
|
380
379
|
if (view === 'loading') {
|