Why does pressing Enter on the GridCellChoiceEditor (ComboBox) cause the Grid to lose focus?

I'm just curious: why does pressing the Enter key on the ComboBox
(GridCellChoiceEditor) cell editor accept the selected value, but then
causes the focus to shift from the Grid to the next sibling control on
the parent window (in the tab traversal order)? Is this the correct
behavior? It seems inconsistent with some other editors, such as the
GridCellTextEditor, where enter accepts the entered value and moves to
the next cell.

Caleb

Because normally the enter key is treated as a navigation key by default, but the wx.TextCtrl is able to intercept it before it is seen as a navigation key and let the grid code use it instead.

···

On 10/26/10 7:50 AM, Const wrote:

I'm just curious: why does pressing the Enter key on the ComboBox
(GridCellChoiceEditor) cell editor accept the selected value, but then
causes the focus to shift from the Grid to the next sibling control on
the parent window (in the tab traversal order)? Is this the correct
behavior? It seems inconsistent with some other editors, such as the
GridCellTextEditor, where enter accepts the entered value and moves to
the next cell.

--
Robin Dunn
Software Craftsman