summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/AutoCompleteWindow.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-06-03 09:55:32 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2012-06-03 09:55:32 (GMT)
commit862d13a30f36d01404cec5c0553c66c89c8c8f2a (patch)
tree24a17d88fcd2085e95a2a973d4f4927bb0bbb02b /Lib/idlelib/AutoCompleteWindow.py
parente606e238ab1476251ef377710442315017e4eb86 (diff)
downloadcpython-862d13a30f36d01404cec5c0553c66c89c8c8f2a.zip
cpython-862d13a30f36d01404cec5c0553c66c89c8c8f2a.tar.gz
cpython-862d13a30f36d01404cec5c0553c66c89c8c8f2a.tar.bz2
Issue #14937: Perform auto-completion of filenames in strings even for non-ASCII filenames.
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 1ad8d15..0477746 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()