summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'app.go')
-rw-r--r--app.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/app.go b/app.go
index e36c704..5bb77f9 100644
--- a/app.go
+++ b/app.go
@@ -228,6 +228,11 @@ func (app *App) handleUIEvent(ev tcell.Event) {
if ok && app.win.InputLen() == 0 {
app.s.TypingStop(app.win.CurrentBuffer())
}
+ case tcell.KeyDelete:
+ ok := app.win.InputDelete()
+ if ok && app.win.InputLen() == 0 {
+ app.s.TypingStop(app.win.CurrentBuffer())
+ }
case tcell.KeyCR, tcell.KeyLF:
buffer := app.win.CurrentBuffer()
input := app.win.InputEnter()