Issue #14937: Perform auto-completion of filenames in strings even for non-ASCII filenames.

This commit is contained in:
Martin v. Löwis 2012-06-03 11:55:32 +02:00
parent e606e238ab
commit 862d13a30f
3 changed files with 24 additions and 2 deletions

View file

@ -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()