diff Lib/idlelib/AutoCompleteWindow.py @ 77322:41e85ac2ccef 3.2

Issue #14937: Perform auto-completion of filenames in strings even for non-ASCII filenames.
author Martin v. Löwis <martin@v.loewis.de>
date Sun, 03 Jun 2012 11:55:32 +0200
parents ef4cca2d6171
children ec5bc858df25
line wrap: on
line diff
--- a/Lib/idlelib/AutoCompleteWindow.py	Sun Jun 03 00:27:54 2012 -0400
+++ b/Lib/idlelib/AutoCompleteWindow.py	Sun Jun 03 11:55:32 2012 +0200
@@ -354,6 +354,15 @@
             # 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()