diff --git a/input/input.go b/input/input.go index 4d60705..de3d2cd 100644 --- a/input/input.go +++ b/input/input.go @@ -36,6 +36,8 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) { case tea.KeyMsg: switch msg.Type { case tea.KeyBackspace: + fallthrough + case tea.KeyDelete: if len(m.Value) > 0 { m.Value = m.Value[:m.pos-1] + m.Value[m.pos:] m.pos--