Fix InjectKey of simscreen

So that we can test for special key sequences.
This commit is contained in:
itchyny 2018-04-03 00:26:45 +09:00 committed by Garrett D'Amore
parent aa381bce1b
commit d46cfaf648
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}