Changing syntaxEdit's keyboard shortcuts (e.g Ctrl+G, Ctrl+F,...)

Hi. Is there any way to change (or disable) some of the SyntaxEdit’s keyboard shortcuts?

Thanks

Hi,

You should use KeyList.Remove method like this:

            syntaxEdit1.KeyList.Remove(Keys.Control | Keys.F);
            syntaxEdit1.KeyList.Remove(Keys.Control | Keys.G);

also you can add your own action using KeyList.Add method like this:

            syntaxEdit1.KeyList.Add(Keys.Control | Keys.Q, yourOwnAction);
        public void yourOwnAction()
        {
        }

Regards,
Andrew

2 Likes

Hi Andrew,
Thanks so much