From: Martin v. Löwis Date: Sun, 3 Jun 2012 10:26:09 +0000 (+0200) Subject: Do not try to insert control characters. X-Git-Tag: v3.3.0b1~293^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97aa21b46a931cea07a37d8d8d3069bfd93a558f;p=python Do not try to insert control characters. --- diff --git a/Lib/idlelib/AutoCompleteWindow.py b/Lib/idlelib/AutoCompleteWindow.py index 04777460ee..7787e7034c 100644 --- a/Lib/idlelib/AutoCompleteWindow.py +++ b/Lib/idlelib/AutoCompleteWindow.py @@ -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