mirror of https://github.com/gdamore/tcell.git
Fix InjectKey of simscreen
So that we can test for special key sequences.
This commit is contained in:
parent
aa381bce1b
commit
d46cfaf648
|
@ -369,7 +369,7 @@ func (s *simscreen) InjectMouse(x, y int, buttons ButtonMask, mod ModMask) {
|
|||
}
|
||||
|
||||
func (s *simscreen) InjectKey(key Key, r rune, mod ModMask) {
|
||||
ev := NewEventKey(KeyRune, r, ModNone)
|
||||
ev := NewEventKey(key, r, mod)
|
||||
s.PostEvent(ev)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue