Add support for job-control suspend (ctrl+z/SIGSTP). (#944)

This commit is contained in:
Ryan Roden-Corrent
2025-07-14 20:13:46 -04:00
committed by GitHub
parent 5dd6cd290e
commit 3f66b8efa1
+5
View File
@@ -114,6 +114,11 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case tea.KeyPressMsg:
keyString := msg.String()
// Handle Ctrl+Z for suspend
if keyString == "ctrl+z" {
return a, tea.Suspend
}
// 1. Handle active modal
if a.modal != nil {
switch keyString {