From 3ac2b4881ba2c5929a1f07aad85cfe96fa355c35 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 29 Jan 2020 21:52:03 -0500 Subject: [PATCH] Fix backspace keybinding --- input/input.go | 2 ++ 1 file changed, 2 insertions(+) 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--