How to exit Zoom

After Zoom selectise from the context menu, I cant exit zoom until I select the Pointer from the context menu

1 Reply

NG Naganathan Ganesh Babu Syncfusion Team February 5, 2018 05:23 AM UTC

Hi Allen,  
 
Thanks for contacting Syncfusion support.  
 
We suggest you to press Ctrl+Shift+P keys to disable zoom functionality and to enable normal selection cursor in diagram control.   
 
However, we have created a simple sample to press Esc key deactivate the currently active tool. we suggest you to use Diagram’s “KeyPress” event to cancel the currently active tool by using Diagram.Controller’s “DeactivateTool()” method. Please refer to the below code example and sample.  
 
[VB] 
 
'Registering the event  
AddHandler diagram1.KeyPress, AddressOf diagram1_KeyPress 
 
Private Sub diagram1_KeyPress(ByVal sender As Object, ByVal e As KeyPressEventArgs) 
If e.KeyChar = CChar(ChrW(Keys.Escape)) Then 
                diagram1.Controller.DeactivateTool(diagram1.Controller.ActiveTool) 
End If 
End Sub 
 
Sample: 
 
 
Regards,  
 
Naganathan K G  
 


Loader.
Up arrow icon