fixes #13 Emulation problem with control keys

This commit is contained in:
Garrett D'Amore 2015-10-03 15:01:48 -07:00
parent 9a601da6e4
commit 518cb73ce7
1 changed files with 4 additions and 1 deletions

View File

@ -286,7 +286,10 @@ func makeEvent(tev tcell.Event) Event {
return Event{Type: EventResize, Width: w, Height: h}
case *tcell.EventKey:
k := tev.Key()
ch := tev.Rune()
ch := rune(0)
if k == tcell.KeyRune {
ch = tev.Rune()
}
mod := tev.Mod()
return Event{
Type: EventKey,