Ticket #14711 (closed enhancement: fixed)
wxGrid: patch to add better TAB handling
|Reported by:||fsenore||Owned by:||vadz|
|Keywords:||wxGrid TAB docs-needed||Cc:|
As discussed in wx-dev I have added a better TAB handling to wxGrid.
The patch does not contain documentation changes yet: I'd rather wait until it is accepted before writing documentation.
I added a new method to set 3 different behaviours.
The default is the same as before: TAB moves only inside the current row and the focus always remains to the grid. With this setting the grid emits an event just before processing the TAB key: the user can handle it to implement custom behaviours.
The other two behaviours are predefined and they do not emit any event.
The patch also contains some changes to the griddemo sample. I changed the tabular table test, adding an event handler that makes TAB move the cursor up and down.
There are also two commented lines to set the other possible behaviours.
Of course, feel free to request changes to the code and to the names that I used in the patch.