I do not seem to be getting notification of copy and paste (sedCut, sedPaste) commands in the OnAfterCommand event. Is this a bug or am I doing something wrong?
If you call CopySelection (CutSelection, Paste) edit's methods explicitly using external code (for example, via action list, like in our demo) you will not get mentioned events. However, when keys are processed internally by edit-view, events are fired ok.
So, keyboard commands are higher level concept than utility methods (CopySelection, CutSelection, Paste).
Thank you. I can work with that although I think the mentioned events should be sent/called even when calling the edit's methods explicitly (at least that makes sense to me).
You can use InvokeCommand public method instead of low-level utility methods to explicitly support keyboard commands mechanizm, and so - mentioned event handlers will be called.
Comments