mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Issue #14937: Perform auto-completion of filenames in strings even for non-ASCII filenames.
This commit is contained in:
parent
e606e238ab
commit
862d13a30f
3 changed files with 24 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue