rune should be zero

This commit is contained in:
Garrett D'Amore 2021-10-15 23:54:34 -07:00
parent f41740d38a
commit ca30a3ede1
1 changed files with 5 additions and 1 deletions

View File

@ -330,7 +330,11 @@ func makeEvent(tev tcell.Event) Event {
ch := rune(0) ch := rune(0)
if k == tcell.KeyRune { if k == tcell.KeyRune {
ch = tev.Rune() ch = tev.Rune()
k = tcell.Key(ch) if ch == ' ' {
k = tcell.Key(' ')
} else {
k = tcell.Key(0)
}
} }
mod := tev.Modifiers() mod := tev.Modifiers()
return Event{ return Event{