This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

SyntaxEdit, OnAfterCommand, and sedCut & sedPaste

edited January 2019 in LMD IDE-Tools
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?

Comments

  • Strange, I"ll check.
  • edited January 2019
    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).

  • edited January 2019
    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.
Sign In or Register to comment.