Also use KeyBackspace for deleting in prompt

Fixes #78
This commit is contained in:
Zachary Yedidia
2016-04-26 09:44:08 -04:00
parent 75d2708b13
commit 269f15d88f

View File

@@ -164,7 +164,7 @@ func (m *Messenger) HandleEvent(event tcell.Event) {
if m.cursorx < Count(m.response) {
m.cursorx++
}
case tcell.KeyBackspace2:
case tcell.KeyBackspace2, tcell.KeyBackspace:
if m.cursorx > 0 {
m.response = string([]rune(m.response)[:m.cursorx-1]) + string(m.response[m.cursorx:])
}