mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Do not try to insert control characters.
This commit is contained in:
parent
862d13a30f
commit
97aa21b46a
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ class AutoCompleteWindow:
|
||||||
# A modifier key, so ignore
|
# A modifier key, so ignore
|
||||||
return
|
return
|
||||||
|
|
||||||
elif event.char:
|
elif event.char and event.char >= ' ':
|
||||||
# Regular character with a non-length-1 keycode
|
# Regular character with a non-length-1 keycode
|
||||||
self._change_start(self.start + event.char)
|
self._change_start(self.start + event.char)
|
||||||
self.lasttypedstart = self.start
|
self.lasttypedstart = self.start
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue