Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/test/TestActivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/TestActivity.py')
-rw-r--r--test/TestActivity.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/TestActivity.py b/test/TestActivity.py
index 1338ff2..9569659 100644
--- a/test/TestActivity.py
+++ b/test/TestActivity.py
@@ -35,6 +35,7 @@ class TestActivity(sugar.activity.activity.Activity):
# 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).