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}
|
return Event{Type: EventResize, Width: w, Height: h}
|
||||||
case *tcell.EventKey:
|
case *tcell.EventKey:
|
||||||
k := tev.Key()
|
k := tev.Key()
|
||||||
ch := tev.Rune()
|
ch := rune(0)
|
||||||
|
if k == tcell.KeyRune {
|
||||||
|
ch = tev.Rune()
|
||||||
|
}
|
||||||
mod := tev.Mod()
|
mod := tev.Mod()
|
||||||
return Event{
|
return Event{
|
||||||
Type: EventKey,
|
Type: EventKey,
|
||||||
|
|
Loading…
Reference in New Issue