I have a dialog with a TTreeView control on it and an OK and Cancel button. The buttons have the Default and Canel properties set to true respectivly and the ModalResult has been set correctly.
The user is able to edit the captions of the tree nodes using the controls built in functionality.
If the user hits escape or enter while editing a tree node the dialog will disapper instead of just canceling or accepting the edit to the node caption.
In the case of escape, for example, I would expect to hit escape once to canel the edit of the caption and then hit escape a second time to cancel the dialog.
What is the best way to deal with this situation?
TMemo has the WantReturns property to deal with this but I can't see anything for TTreeView.