Commands

Hello, is there a way to disable all commands? for example, if i focus a node with a nodeTemplate that returns a text Input, i would like disable all commands shortcuts

Regards


1 Reply

VG Vivisa Ganesan Syncfusion Team May 14, 2024 06:24 AM UTC

Hi,

You can utilize the command manager to disable keyboard shortcuts. In this, you can restrict the execution of specific commands. In the example below, we have restricted the execution of the delete key command. Similarly, you can restrict the keyboard shortcuts. Refer to the sample, UG, and KB provided below.


UG: https://ej2.syncfusion.com/react/documentation/diagram/commands#command-manager

KB: https://support.syncfusion.com/kb/article/14782/how-to-prevent-deletion-of-node-or-connector-in-react-diagram-using-commandmanager

Sample: https://stackblitz.com/edit/react-qn37ho-idbj3d?file=index.js,index.html


Regards,

Vivisa


Loader.
Up arrow icon