How do I prevent short cut?

Hi, 

How do I prevent short cut?

I want to prevent below 

ctrl + r (align right)

ctrl +l (align left)

api document are only so keyConfig 


Thank you 




1 Reply

GK Gunasekar Kuppusamy Syncfusion Team July 6, 2021 02:21 PM UTC

Hi jahym,


Greetings from Syncfusion support.


We have validated your reported query How do I prevent short cut?

We can prevent the defined shortcuts using the key config property. You can define dummy shortcut keys for that action if you don't need that particular shortcut key action.

For the keys that have been prevented, the browser's default behavior will be used.

We have prepared a sample for your reference,

Sample: https://stackblitz.com/edit/react-u9kk3y-wnwwb4?file=index.js

Please let us know if the solution helps,

Regards
Gunasekar K

Loader.
Up arrow icon