When hit ENTER, the behaviour is strange:
1. Press ENTER move to next line, and keep pressing
will keep move to the next line
>>> [ENTER]
[ENTER]
[ENTER]
2. I can create the following sequence
>>> a [ENTER]
ab [ENTER]
abc [ENTER]
abcd [ENTER]
abcde [ENTER]
abcdef [ENTER]
syntax error:
After debugging, I found out that the ENTER button has
two different type:
- wx.WXK_RETURN
- wx.WXK_NUMPAD_ENTER
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,
wx.WXK_NUMPAD_ENTER):
...
## elif controlDown and key == wx.WXK_RETURN:
elif controlDown and key in (wx.WXK_RETURN,
wx.WXK_NUMPAD_ENTER):
...
Regards,
Chandra
Nobody/Anonymous ( nobody ) - 2005-09-21 03:57
5
Open
None
Patrick K. O'Brien
shell module
None
Public
|
Date: 2005-09-26 15:19 Logged In: NO |