Skip to content

Commit c5c2150

Browse files
authored
Merge pull request #703 from navidys/fixbug_container_exec_special_keys
Fixbug for exec terminal del and delete key input
2 parents 4ecf2a2 + a19fd02 commit c5c2150

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ui/containers/cntdialogs/vterm/vterm.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,15 @@ func (d *VtermDialog) writeToSession(event *tcell.EventKey) {
407407
case tcell.KeyEnter:
408408
log.Debug().Msgf("write to session KeyEnter")
409409
d.writeToStdinSessionWriter(rune(tcell.KeyEnter))
410+
case tcell.KeyBackspace:
411+
log.Debug().Msgf("write to session KeyBackspace")
412+
d.writeToStdinSessionWriter(rune(tcell.KeyBackspace))
413+
case tcell.KeyDelete:
414+
log.Debug().Msgf("write to session KeyDelete")
415+
d.writeToStdinSessionWriter(rune(tcell.KeyDelete))
416+
case tcell.KeyDEL:
417+
log.Debug().Msgf("write to session KeyDEL")
418+
d.writeToStdinSessionWriter(rune(tcell.KeyDEL))
410419
case tcell.KeyEsc:
411420
log.Debug().Msgf("write to session KeyEsc")
412421
d.writeToStdinSessionWriter(rune(27)) //nolint:mnd

0 commit comments

Comments
 (0)