When hit ENTER, the behaviour is strange:
1. Press ENTER move to next line, and keep pressing
will keep move to the next line
2. I can create the following sequence
>>> a [ENTER]
After debugging, I found out that the ENTER button has
two different type:
What I hitted was wx.WXK_NUMPAD_ENTER, which produce
these strange behaviour.
I change this in shell.py and everything back to normal:
def OnKeyDown(self, event):
## if not controlDown and key == wx.WXK_RETURN:
if not controlDown and key in (wx.WXK_RETURN,
## elif controlDown and key == wx.WXK_RETURN:
elif controlDown and key in (wx.WXK_RETURN,
Log in to post a comment.