Completed
Last Updated: 07 Aug 2024 15:07 by ADMIN
Release 2024.3.806 (2024 Q3)
Matthias
Created on: 01 Jul 2024 08:31
Category: SyntaxEditor
Type: Bug Report
0
RadSyntaxEditor: Should not trigger Mnemonic option on MS Button
In this particular case, we have RadSyntaxEditor control and MS Button. The MS Button have mnemonic text: "&OK". When the RadSyntexEditor control editor is focused and we press the O button, the Click event of the MS Button is triggered. This way we can't press the O key while RadSyntaxEditor control is focused.
1 comment
ADMIN
Dinko | Tech Support Engineer
Posted on: 01 Jul 2024 08:40

Hello Matthias,

Thank you for reporting this. As a workaround, we can override the IsInputChar() method of the RadSyntaxEditor. To do that we can create a custom class that derives from RadSyntaxEditor control. This custom class will replace the RadSyntaxEditor class in your application.

public class MySyntax : RadSyntaxEditor
{
    protected override bool IsInputChar(char charCode)
    {
        return base.IsInputChar(charCode) || char.IsLetterOrDigit(charCode); 
    }
    public override string ThemeClassName
    {
        get
        {
            return typeof(RadSyntaxEditor).FullName;
        }
        set
        {
            base.ThemeClassName = value;
        }
    }
}

 

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.