]> granicus.if.org Git - python/commitdiff
Do not try to insert control characters.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 3 Jun 2012 10:26:09 +0000 (12:26 +0200)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 3 Jun 2012 10:26:09 +0000 (12:26 +0200)
Lib/idlelib/AutoCompleteWindow.py

index 04777460ee3e21cb870691f5fa332e2083ced6c9..7787e7034c151c122ecdd5aa87a63f39cb2a9c6c 100644 (file)
@@ -354,7 +354,7 @@ class AutoCompleteWindow:
             # A modifier key, so ignore
             return
 
-        elif event.char:
+        elif event.char and event.char >= ' ':
             # Regular character with a non-length-1 keycode
             self._change_start(self.start + event.char)
             self.lasttypedstart = self.start