Skip to content

Commit ac9d24e

Browse files
committed
support Ctrl+Z to run compose in background
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent 7755302 commit ac9d24e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd/formatter/shortcut.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ func (lk *LogKeyboard) HandleKeyEvents(ctx context.Context, event keyboard.KeyEv
321321
lk.logLevel = NONE
322322
// will notify main thread to kill and will handle gracefully
323323
lk.signalChannel <- syscall.SIGINT
324+
case keyboard.KeyCtrlZ:
325+
_ = syscall.Kill(0, syscall.SIGSTOP)
324326
case keyboard.KeyEnter:
325327
newLine()
326328
lk.printNavigationMenu()

0 commit comments

Comments
 (0)