aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/idlelib/AutoCompleteWindow.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-06-03 12:00:48 +0200
committerMartin v. Löwis <martin@v.loewis.de>2012-06-03 12:00:48 +0200
commit156989aa7974a08364f96ad1dbe8a22bf2b41306 (patch)
tree1c37645714191683c613cc82c4d178d9af31efea /Lib/idlelib/AutoCompleteWindow.py
parentfe4dfd2b65850f0cddec700e2f747fec611b4be9 (diff)
parent862d13a30f36d01404cec5c0553c66c89c8c8f2a (diff)
downloadcpython-156989aa7974a08364f96ad1dbe8a22bf2b41306.tar.gz
cpython-156989aa7974a08364f96ad1dbe8a22bf2b41306.zip
Merge 3.2: issue #14937.
Diffstat (limited to 'Lib/idlelib/AutoCompleteWindow.py')
-rw-r--r--Lib/idlelib/AutoCompleteWindow.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/idlelib/AutoCompleteWindow.py b/Lib/idlelib/AutoCompleteWindow.py
index 1ad8d156c9d..04777460ee3 100644
--- a/Lib/idlelib/AutoCompleteWindow.py
+++ b/Lib/idlelib/AutoCompleteWindow.py
@@ -354,6 +354,15 @@ class AutoCompleteWindow:
# A modifier key, so ignore
return
+ elif event.char:
+ # Regular character with a non-length-1 keycode
+ self._change_start(self.start + event.char)
+ self.lasttypedstart = self.start
+ self.listbox.select_clear(0, int(self.listbox.curselection()[0]))
+ self.listbox.select_set(self._binary_search(self.start))
+ self._selection_changed()
+ return "break"
+
else:
# Unknown event, close the window and let it through.
self.hide_window()