From ca30a3ede14aa910f54d7f03f225ed6ffd10b1e7 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 15 Oct 2021 23:54:34 -0700 Subject: [PATCH] rune should be zero --- termbox/compat.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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{