Skip to content

Commit 88aae9c

Browse files
committed
support Ctrl+Z to run compose in background
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 7755302 commit 88aae9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)