Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
sezanzeb committed Nov 20, 2024
1 parent c87ea1a commit 682e796
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions inputremapper/injection/macros/tasks/mod_tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ async def listener(event: InputEvent) -> None:
asyncio_event.set()
await self.keycode_pause()
await self.throttle()
# While we are emptying the queue, more events might still arrive and add
# to the queue.

# We remove this as late as possible, because if more keys are pressed while
# jamming_asyncio_events is still being taken care of, they should wait until
# all is done.
# We remove this as late as possible, so that the jamming_asyncio_events
# mechanism ensures the order of all events that are pressed, until mod_tap is
# completely finished.
self.remove_event_listener(listener)

# Keep the modifier pressed until the input/trigger is released
Expand Down

0 comments on commit 682e796

Please sign in to comment.