From 97aa21b46a931cea07a37d8d8d3069bfd93a558f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 3 Jun 2012 12:26:09 +0200 Subject: Do not try to insert control characters. --- Lib/idlelib/AutoCompleteWindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/AutoCompleteWindow.py b/Lib/idlelib/AutoCompleteWindow.py index 0477746..7787e70 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 -- cgit v0.12