Skip to content

Commit

Permalink
fix key events
Browse files Browse the repository at this point in the history
Issue:
Key events where not detectable

Fix:
Add `self._pygamecanvas.grab_focus()` to math_hurdlerActivity.py
  • Loading branch information
Dimi20cen committed Sep 14, 2023
1 parent 0b71861 commit ddcb7cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions math_hurdlerActivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(self, handle):
# Note that set_canvas implicitly calls read_file when
# resuming from the Journal.
self.set_canvas(self._pygamecanvas)
self._pygamecanvas.grab_focus()

# Start the game running (self.game.run is called when the
# activity constructor returns).
Expand Down

0 comments on commit ddcb7cf

Please sign in to comment.