diff --git a/simulation.go b/simulation.go index 81bc089..e627e74 100644 --- a/simulation.go +++ b/simulation.go @@ -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) }