diff --git a/wdgt_field.go b/wdgt_field.go index fe6284a..3113863 100644 --- a/wdgt_field.go +++ b/wdgt_field.go @@ -101,6 +101,12 @@ func (w *Field) HandleKey(ev *tcell.EventKey) bool { } return w.handleBackspace(ev) } + if ev.Key() == tcell.KeyDelete { + if w.cursor < len(w.value) { + w.cursor++ + return w.handleBackspace(ev) + } + } if ok := w.keyMap.Handle(ev); ok { return true }