Articles in this section

How to disable keyboard shortcuts for the WinForms SyntaxEditor (EditControl)?

Disable keyboard shortcuts

To remove the keyboard shortcuts, you will first need to remove them from the context menu. Here is an example for removing some of the keyboard shortcuts.

C#

editControl1.KeyBinder.RemoveBinding(Keys.Control | Keys.N);
editControl1.KeyBinder.RemoveBinding(Keys.Control | Keys.F);
editControl1.KeyBinder.RemoveBinding(Keys.Control | Keys.S);
editControl1.KeyBinder.RemoveBinding(Keys.Control | Keys.O);
editControl1.KeyBinder.RemoveBinding(Keys.Control | Keys.Shift | Keys.Space);
editControl1.KeyBinder.RemoveBinding(Keys.Control | Keys.Shift | Keys.F2);

 

VB

editControl1.KeyBinder.RemoveBinding(Keys.Control Or Keys.N)
editControl1.KeyBinder.RemoveBinding(Keys.Control Or Keys.F)
editControl1.KeyBinder.RemoveBinding(Keys.Control Or Keys.S)
editControl1.KeyBinder.RemoveBinding(Keys.Control Or Keys.O)
editControl1.KeyBinder.RemoveBinding(Keys.Control Or Keys.Shift Or Keys.Space)
editControl1.KeyBinder.RemoveBinding(Keys.Control Or Keys.Shift Or Keys.F2)

Sample: http://www.syncfusion.com/downloads/support/directtrac/130671/KeyboardShortcutInEditControl-1861140587.zip

Reference link: https://help.syncfusion.com/windowsforms/syntax-editor/end-user-capability

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied