Distinguishing Delete from Cut command

Hi Walter,
is it possible to Identify a delete operation from a cut operation within “selectionDeleting” event handler ?

Manoj Kumar Lakshman

I can’t find a clean way that just involves state in SelectionDeleting. There is a transaction active in both cases, but the transaction doesn’t get a name until the FinishTransaction.

but… GoView has

public virtual void EditDelete()
public virtual void EditCut()

which you could override and add state to the view… and this would help you also distinguish those other SelectionDeleting events that involve dragging.


public override void EditCut() {
this.myDeletingState = “cut”;
this.myDeletingState = “”;

@dreamweiver, are you sure that you are asking a question about GoDiagram rather than about GoJS?