Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Delete Key functionality stopped working. (Read 2277 times)
donalmeida
Junior Member
**
Offline


Yay...

Posts: 65
Joined: Oct 6th, 2009
Delete Key functionality stopped working.
Feb 22nd, 2010 at 9:52pm
Print Post  
We had the keyboard delete key functionality working before we upgraded to MindFusion.Diagramming.Silverlight.dll ver 1.3.0.21960. How do I get it to work again?
Thanks, Don Almeida.
  

Don Almeida.
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Delete Key functionality stopped working.
Reply #1 - Feb 23rd, 2010 at 8:47am
Print Post  
We have never had the Del key doing anything in the Silverlight version. Probably you have a KeyDown handler that deletes the selected items - could you check if the event is raised now when you press Del?
  
Back to top
 
IP Logged
 
donalmeida
Junior Member
**
Offline


Yay...

Posts: 65
Joined: Oct 6th, 2009
Re: Delete Key functionality stopped working.
Reply #2 - Feb 23rd, 2010 at 3:58pm
Print Post  
Hi Stoyan,
This is the C# code.
private void diagram_KeyDown(object sender, KeyEventArgs e)
       {
           if (e.Key == Key.Delete)
           {
               DeleteActiveElement();
           }
       }

and in the markup I set the event handlers as:
KeyDown="diagram_KeyDown"
KeyUp="diagram_KeyUp" 

If I set a break point and attach the debugger  it does nto break here at all. and that is why I think the event is not being fired.
thanks Don Almeida                                                
  

Don Almeida.
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Delete Key functionality stopped working.
Reply #3 - Feb 23rd, 2010 at 4:17pm
Print Post  
Hi Don,

Try calling diagram.Focus() in response to the NodeSelected event.

Stoyan
  
Back to top
 
IP Logged
 
donalmeida
Junior Member
**
Offline


Yay...

Posts: 65
Joined: Oct 6th, 2009
Re: Delete Key functionality stopped working.
Reply #4 - Feb 23rd, 2010 at 4:24pm
Print Post  
Works like a charm. Thank you Stoyan for the quick reply.

Don Almeida.
  

Don Almeida.
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint