mirror of https://github.com/gdamore/tcell.git
fixes #13 Emulation problem with control keys
This commit is contained in:
parent
9a601da6e4
commit
518cb73ce7
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue