##// END OF EJS Templates
BUG: Fix handling of non-tab completion tab keys
Gael Varoquaux -
Show More
@@ -455,7 +455,8 b' class WxController(ConsoleWidget, PrefilterFrontEnd):'
455 # Tab-completion
455 # Tab-completion
456 elif event.KeyCode == ord('\t'):
456 elif event.KeyCode == ord('\t'):
457 current_line, current_line_num = self.CurLine
457 current_line, current_line_num = self.CurLine
458 if not re.match(r'^\s*$', current_line):
458 if not re.match(r'^%s\s*$' % self.continuation_prompt(),
459 current_line):
459 self.complete_current_input()
460 self.complete_current_input()
460 if self.AutoCompActive():
461 if self.AutoCompActive():
461 wx.CallAfter(self._popup_completion, create=True)
462 wx.CallAfter(self._popup_completion, create=True)
General Comments 0
You need to be logged in to leave comments. Login now