diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-06-03 10:26:09 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-06-03 10:26:09 (GMT) |
commit | 97aa21b46a931cea07a37d8d8d3069bfd93a558f (patch) | |
tree | b7f299983e9e5fd0cd3e03d2f6682f71268ba6b8 /Lib | |
parent | 862d13a30f36d01404cec5c0553c66c89c8c8f2a (diff) | |
download | cpython-97aa21b46a931cea07a37d8d8d3069bfd93a558f.zip cpython-97aa21b46a931cea07a37d8d8d3069bfd93a558f.tar.gz cpython-97aa21b46a931cea07a37d8d8d3069bfd93a558f.tar.bz2 |
Do not try to insert control characters.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/AutoCompleteWindow.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |