Share

PyCrust

Tracker: Bugs

5 hitting ENTER behave strangely - ID: 1297216
Last Update: Comment added ( nobody )

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


Comment ( 1 )




Date: 2005-09-26 15:19
Sender: nobody

Logged In: NO

Hello,

thanks.

The Pycrust project isn't maintained anymore.
(At least not here).

You could report this in the wxpython-user mailing list or
gmane.comp.python.wxpython, which is the mirror for
nntp access.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.