Skip to content

Commit

Permalink
Pass dummy values for injected for uinput
Browse files Browse the repository at this point in the history
  • Loading branch information
moses-palmer committed Mar 3, 2025
1 parent 149c965 commit 3686c69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/pynput/keyboard/_uinput.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,11 @@ def _handle_message(self, event):
except StopIteration:
key = KeyCode.from_vk(vk)

# We do not know whether these events are injected
if is_press:
self.on_press(key)
self.on_press(key, False)
else:
self.on_release(key)
self.on_release(key, False)


try:
Expand Down

0 comments on commit 3686c69

Please # to comment.