TAB/ENTER stolen from custom cell editor

cai public.cai at gmail.com
Tue Jul 3 11:50:49 PDT 2007


Hi list,

a while ago I designed a notebook where one of the pages shows an 
editable grid. This grid for some cells instantiates custom cell 
editors (a combo). I wrote some code to define custom behaviour for 
the Tab and Enter keys for these cell editors. This code works just fine.

Later I reused this notebook in another frame where I instantiate a 
wxSplitterWindow, having a custom wxTreeCtrl in the first pane and my 
notebook in the second. Well, here pressing Tab/Enter when a custom 
cell editor is shown up leads to unexpected behaviour.

I mean, the custom cell editor remains shown while the focus goes to 
the current node of the treectrl of the first pane. Pressing again 
Tab/Enter puts the focus in the second pane, on the first tab (the 
one containing the grid) of my notebook.

[Pressing once more Tab/Enter puts the focus to the cell editor 
(which is still shown). And finally, pressing again Tab/Enter calls 
the onKeyDown() I wrote for the page containing the grid, leading to 
the expected behaviour.]

Who steals the Tab/Enter from my custom cell editor and how can I prevent this?

Thank you,

Cristina.





More information about the wxpython-users mailing list