Show More
@@ -445,7 +445,7 b' class WxController(ConsoleWidget, PrefilterFrontEnd):' | |||
|
445 | 445 | # Go to first line, for seemless history up. |
|
446 | 446 | self.GotoPos(self.current_prompt_pos) |
|
447 | 447 | # Down history |
|
448 |
elif |
|
|
448 | elif key_code == wx.WXK_DOWN and ( | |
|
449 | 449 | event.ControlDown() or |
|
450 | 450 | current_line_num == self.LineCount -1 |
|
451 | 451 | ): |
@@ -453,7 +453,7 b' class WxController(ConsoleWidget, PrefilterFrontEnd):' | |||
|
453 | 453 | if new_buffer is not None: |
|
454 | 454 | self.input_buffer = new_buffer |
|
455 | 455 | # Tab-completion |
|
456 |
elif |
|
|
456 | elif key_code == ord('\t'): | |
|
457 | 457 | current_line, current_line_num = self.CurLine |
|
458 | 458 | if not re.match(r'^%s\s*$' % self.continuation_prompt(), |
|
459 | 459 | current_line): |
@@ -462,7 +462,7 b' class WxController(ConsoleWidget, PrefilterFrontEnd):' | |||
|
462 | 462 | wx.CallAfter(self._popup_completion, create=True) |
|
463 | 463 | else: |
|
464 | 464 | event.Skip() |
|
465 |
elif |
|
|
465 | elif key_code == wx.WXK_BACK: | |
|
466 | 466 | # If characters where erased, check if we have to |
|
467 | 467 | # remove a line. |
|
468 | 468 | # XXX: What about DEL? |
@@ -497,7 +497,7 b' class WxController(ConsoleWidget, PrefilterFrontEnd):' | |||
|
497 | 497 | def _on_key_up(self, event, skip=True): |
|
498 | 498 | """ Called when any key is released. |
|
499 | 499 | """ |
|
500 | if event.KeyCode in (59, ord('.')): | |
|
500 | if event.GetKeyCode() in (59, ord('.')): | |
|
501 | 501 | # Intercepting '.' |
|
502 | 502 | event.Skip() |
|
503 | 503 | wx.CallAfter(self._popup_completion, create=True) |
General Comments 0
You need to be logged in to leave comments.
Login now