Weird enter key behavior when using TTMSFNCDataGridComboEdit

Hi!

Using a fncdatagrid (VCL) with enterkeyhandling gekhNextColumn.

in Getinplaceeditorproperties I have:

if AInplaceEditor is TTMSFNCDataGridComboEdit then begin
  TTMSFNCDataGridComboEdit(AInplaceEditor).AutoComplete := True;
  TTMSFNCDataGridComboEdit(AInplaceEditor).AutoCloseUp := True;
  TTMSFNCDataGridComboEdit(AInplaceEditor).AutoDropDown := False;
  TTMSFNCDataGridComboEdit(AInplaceEditor).DropDownCount := 10;
  TTMSFNCDataGridComboEdit(AInplaceEditor).AutoDropDownWidth := True;


Issue #1: when selecting a combo item using keyboard (ENTER), I must press ENTER again to leave the cell. First ENTER selects and drops up, second ENTER leaves the cell. Is there a way to make it leave the cell without having to write OnKeyUp or similar event?

Issue #2: Before I had AutoDropDown := True; but this way when selecting a combo item using keyboard (ENTER), it seems that the item is selected, but the combo drops down again.

Issue #3: Also when I had AutoDropDown := True; , sometimes after the grid navigation automatically focused on one of these cells, the mouse cursor became invisible while hovering the parent Form. It became visible again after selecting one of the combo items, or closing the combo.

Thanks !

Hi,

Thank you for the detailed report.

We checked the inplace editor key handling. When the combo dropdown is open, the first Enter key is currently handled by the combo to confirm the selected item and close the dropdown. Consequently, the grid does not process that same key to close the editor and navigate to the next column. There is currently no separate property that makes both actions occur on the same Enter key.

We also confirmed that enabling AutoDropDown can cause the dropdown to reopen after confirming an item with Enter. The disappearing mouse cursor appears to be related to the native combo dropdown remaining active in this situation.

As a temporary workaround, we recommend keeping:

AutoComplete := True;
AutoCloseUp := True;
AutoDropDown := False;

This avoids the dropdown reopening and the related cursor behavior, although two Enter presses are still required when selecting from an open dropdown.

We will investigate adjusting the grid’s internal key handling so that confirming an item can also close the inplace editor and apply EnterKeyHandling with the same Enter key.