fix: add ctrl+h to backspace text

This commit is contained in:
Maas Lalani 2022-07-31 13:15:31 -04:00
parent 58a9d4c7ec
commit 8f65160828

View File

@ -611,7 +611,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
switch msg := msg.(type) {
case tea.KeyMsg:
switch msg.Type {
case tea.KeyBackspace: // delete character before cursor
case tea.KeyBackspace, tea.KeyCtrlH: // delete character before cursor
m.Err = nil
if msg.Alt {