AdvStringGrid: How to avoid reset of inplace editor on escape

Using the AdvStringGrid with inplace-editor edNormal, I can easily type some content.
When pressing Escape, the current text-change is reset.
How can I prevent this from happening?

As a workaround I hande FormKeyDown and do:

if (grid->CurrentCell != NULL) {
      UnicodeString content= grid->CurrentCell;
      grid->HideInplaceEdit();  // << reset happens here
      grid->CurrentCell = content;
}

But I wonder if there is a cleaner way or some option to avoid the cancel?

Regards

This is actually by design to cancel an edit. There is at this moment not a built-in setting to stop this cancel edit behavior. Your solution to override key handling is indeed a possible solution.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.