diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-06-03 09:55:32 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-06-03 09:55:32 (GMT) |
commit | 862d13a30f36d01404cec5c0553c66c89c8c8f2a (patch) | |
tree | 24a17d88fcd2085e95a2a973d4f4927bb0bbb02b /Lib/idlelib/AutoCompleteWindow.py | |
parent | e606e238ab1476251ef377710442315017e4eb86 (diff) | |
download | cpython-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.py | 9 |
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() |