mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
Add support for job-control suspend (ctrl+z/SIGSTP). (#944)
This commit is contained in:
parent
d6eff3b3a3
commit
2ce694d41f
1 changed files with 5 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue