diff --git a/termbox/compat.go b/termbox/compat.go index 5eb7514..6ed67f3 100644 --- a/termbox/compat.go +++ b/termbox/compat.go @@ -330,7 +330,11 @@ func makeEvent(tev tcell.Event) Event { ch := rune(0) if k == tcell.KeyRune { ch = tev.Rune() - k = tcell.Key(ch) + if ch == ' ' { + k = tcell.Key(' ') + } else { + k = tcell.Key(0) + } } mod := tev.Modifiers() return Event{