diff Lib/idlelib/AutoCompleteWindow.py @ 77325:ec5bc858df25 3.2

Do not try to insert control characters.
author Martin v. Löwis <martin@v.loewis.de>
date Sun, 03 Jun 2012 12:26:09 +0200
parents 41e85ac2ccef
children c882395e8ed8
line wrap: on
line diff
--- a/Lib/idlelib/AutoCompleteWindow.py	Sun Jun 03 11:55:32 2012 +0200
+++ b/Lib/idlelib/AutoCompleteWindow.py	Sun Jun 03 12:26:09 2012 +0200
@@ -354,7 +354,7 @@
             # 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