Replication
- Record a long text writing event (make sure to include letters like 's').
- Play the event on a notepad or smth that has a ctrl+s option.
- While event is playing, try to abort it with Ctrl+R
Result
The ctrl+s (save as) option will be invoked from Notepad - we dont want it.
Fix suggestion
- Add an bool isEventPlaying = false
- Set to true on PlayEvents() ingress
- Set to false on StopEvent() + AbortEvent()
- Using BlockInputAPI if flag is true and block the input unless its the StopKey, and then just call AbortEvent() without actually performing the ctrl stoke (for example).
Replication
Result
The ctrl+s (save as) option will be invoked from Notepad - we dont want it.
Fix suggestion