Focus on next editor in Grid


I am using vaadin 8 in compatibility mode.

I have a Grid with a row containing some DateField and a Custom Field which has a TextField inside

abstract class AbstractTextFieldBasedCustomField<T> extends CustomField<T> {

  protected final TextField textField = new TextField();

the problem is this:

  • when I press enter in an editor the grid selects the next row
  • when I am inside a DateField and press enter the grid selects the next row and focuses on the next DateField
  • when iI am inside the custom field and press enter it selects the next row but does not focus on the field.

I can’t figure out what is the Grid mechanism that focuses on the next element

Do you have any suggestions?

You seem to have the question already in StackOverflow and I answered there: