Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Delete Node (Read 1389 times)
Kuzya
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Joined: Dec 19th, 2011
Delete Node
Aug 8th, 2018 at 3:33pm
Print Post  
Hi,

Deleting nodes does not always work.
I use
diagram.setDelKeyAction(DelKeyAction.DeleteSelectedItems);

Do I need anything else?


Regards,
Kuzya
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Delete Node
Reply #1 - Aug 9th, 2018 at 9:15am
Print Post  
Hi,

Maybe the diagram does not have the keyboard focus, try first clicking on it to make it acquire focus. Also check if you aren't stopping deletion from nodeDeleting event handler.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Kuzya
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Joined: Dec 19th, 2011
Re: Delete Node
Reply #2 - Aug 9th, 2018 at 12:46pm
Print Post  
Hi,

In "KeyboardInputDispatcher." the focus element of the diagram is checked if the object on which the keyboard event is executed. The first time you open the dialog this is also true and the deletion works correctly. As soon as you open a dialog the second time in which the diagram is created, the comparison seems to be no longer true.

What could be the connection?

Regards,
Kuzya
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Delete Node
Reply #3 - Aug 10th, 2018 at 9:30am
Print Post  
Hi,

By opening a dialog do you mean a new browser window or some DOM element in same window? If it's in same window, try calling document.body.removeChild(diagram.focusDiv) when closing these dialogs.

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