Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 6d9ca0a..d665b9f 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -3634,6 +3634,7 @@ before making changes to your program'))
def get_keyboard_input(self):
""" Query keyboard and update cached keyboard input """
+ self.window.grab_focus()
if len(self.keypress) == 1:
self.keyboard = ord(self.keypress[0])
elif self.keypress in KEY_DICT: