This is a migrated thread and some comments may be shown as answers.

EUR symbol cannot be entered via german keyboard layout

1 Answer 137 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Bernhard
Top achievements
Rank 1
Bernhard asked on 30 Oct 2013, 08:37 AM
Hello,

my customer has noticed that it is not possible to enter the euro currency symbol € in the RichTextBox via key combination "Alt Gr" + "E"

You can reproduce it in the online demo (http://demos.telerik.com/silverlight/#RichTextBox/TelerikEditor).

As workaround it's only possible to enter the symbol with "Alt" + 0128.

Best regards,
Bernhard

1 Answer, 1 is accepted

Sort by
0
Accepted
Svetoslav
Telerik team
answered on 31 Oct 2013, 02:49 PM
Hello Bernhard,

Thank you for contacting us!

Telerik RichTextBlock supports default key-binding commands which can be overridden and customize to the liking of the user . Currently, you can insert an Euro sign in RadRichTextBox using the following keyboard shortcut: Alt+Num0+Num1+Num2+Num8. If you want to change that behavior, you can subscribe to the PreviewEditorKeyDown event of the editor as shown here and handle the insertion here:

private void radRichTextBox_PreviewEditorKeyDown(object sender, Documents.PreviewEditorKeyEventArgs e)
{
    if(Keyboard.Modifiers.HasFlag(ModifierKeys.Alt) && Keyboard.Modifiers.HasFlag(ModifierKeys.Control) &&
        e.Key == Key.E)
    {
        e.SuppressDefaultAction = true;
        e.OriginalArgs.Handled = true;
  
        this.radRichTextBox.Insert("€");
    }
}


If you have other questions don't hesitate to contact us again.

Regards,
Svetoslav
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
RichTextBox
Asked by
Bernhard
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Share this question
or