support Ctrl+Z to run compose in background

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof
2025-10-15 16:48:16 +02:00
committed by Nicolas De loof
parent 7755302348
commit 88aae9c46e

View File

@@ -321,6 +321,8 @@ func (lk *LogKeyboard) HandleKeyEvents(ctx context.Context, event keyboard.KeyEv
lk.logLevel = NONE
// will notify main thread to kill and will handle gracefully
lk.signalChannel <- syscall.SIGINT
case keyboard.KeyCtrlZ:
_ = syscall.Kill(0, syscall.SIGSTOP)
case keyboard.KeyEnter:
newLine()
lk.printNavigationMenu()