enter key in wxgrid editors

Barry Gallagher wrote:

Is there a way to have the enter key finish editing within a cell editor when the grid is parented to a dialog (or panel)? If you make the code change below to the demo's source the enter key will move the cursor down a row when the editor is NOT active, but when the editor is active the enter key has no effect. I'd just like to achieve the standard behaviour of enter ending the editing and potentially moving the cursor. I'm using 2.4.2.4 on MSW.

IIRC, you can do this either by turning off the wx.TAB_TRAVERSAL style on the dialog or panel, or create a custom GridCellEditor class that uses the wx.TE_PROCESS_ENTER style.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!