[wxPython] Activating a wxListCtrl item with the ENTER key

Using wxPython 2.2 under Windows98, I am trying to bring up a dialog when
an item in a list is activated using a double-click OR the Enter key. The
wxWindows help file description says:

EVT_LIST_ITEM_ACTIVATED(id, func) The item has been activated (ENTER or
double click).

A double-click works for me, but the ENTER key is ignored (also tested by
substituting the above for EVT_LEFT_DCLICK in the wxPython wxListCtrl
demo). Have I missed something, or is this broken?

Regards,

David Hughes
Forestfield Software

Using wxPython 2.2 under Windows98, I am trying to bring up a dialog when
an item in a list is activated using a double-click OR the Enter key. The
wxWindows help file description says:

EVT_LIST_ITEM_ACTIVATED(id, func) The item has been activated (ENTER or
double click).

A double-click works for me, but the ENTER key is ignored

If the list ctrl is on a wxPanel then it will by default intercept the Enter
key to use for navigation (same as clicking the default button if any.) If
you give the panel the wxWANTS_CHARS style then the list ctrl will get the
Enter key and turn it into the ACTIVATED event.

ยทยทยท

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!