Skip to content

Ignore user input keys pressed while event is playing #32

Description

@ShayRubach

Replication

  1. Record a long text writing event (make sure to include letters like 's').
  2. Play the event on a notepad or smth that has a ctrl+s option.
  3. 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

  1. Add an bool isEventPlaying = false
  2. Set to true on PlayEvents() ingress
  3. Set to false on StopEvent() + AbortEvent()
  4. 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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions