Capture delete action #353
JuanMaGMZG
started this conversation in
General
Replies: 2 comments 2 replies
-
Do you want to cancel a deletion based on some condition? |
Beta Was this translation helpful? Give feedback.
1 reply
-
if it serves you, what I did was remove the shortcut to delete and in the KeyDown event, get the selected link or the node if it is a node that is selected
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to capture the event of deleting what I have selected (either link or node), but I do not know if there is already a function for it or I have to do it.
diagram.KeyDown += (e) =>
{
if (e.Key == "Delete")
{
e.preventDefault();
}
};
I tried the diagram.keydown when I press Delete, but e.preventDefault does not exist.
Do you have any suggestions?
Thx 4 all
Beta Was this translation helpful? Give feedback.
All reactions