Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Prevent node deletion (Read 810 times)
Chc
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: Jan 4th, 2023
Prevent node deletion
Jan 4th, 2023 at 6:16pm
Print Post  
Is there a way to prevent deleting a node by pressing the key combination <shift><delete>?

The NodeDeleting event is only called with the key <delete>. I can catch that one. The event OnKeyDown is not called at all.

Thanks in advance
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Prevent node deletion
Reply #1 - Jan 4th, 2023 at 7:35pm
Print Post  
Apparently that's another shortcut for ApplicationCommands.Cut, along with Ctrl+X. The diagram handles it internally by calling CutToClipboard method, without validating individual nodes in the selection. Try replacing the command binding as in this post -

https://mindfusion.eu/Forum/YaBB.pl?num=1335340756/2#2

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint