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

Sigle euro

1 Answer 29 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Marie Claire
Top achievements
Rank 1
Marie Claire asked on 20 Apr 2011, 04:17 PM
Bonjour

J'aimerai savoir comment saisir le sigle €  (euro) dans un radrichtextbox. Sur le clavier français il est sur la touche E + Alt Gr. Dans le radrichtextbox cela produit un alignement centre.

Merci de votre réponse

1 Answer, 1 is accepted

Sort by
0
Accepted
Boby
Telerik team
answered on 26 Apr 2011, 10:02 AM
Hi Marie Claire,

The AltGr key is recognized as Ctrl + Alt combination, thus triggering ChangeTextAlignmentCommand, which is bound to Ctrl + Alt + E shortcut. This command is also bound to Ctrl + E, but it is inconvenient because triggers Internet Explorer command too.
Fortunately there is a way to suppress the default key bindings, as follows:
<telerik:RadRichTextBox LayoutMode="Paged" PreviewEditorKeyDown="RadRichTextBox_PreviewEditorKeyDown" />
and the code behind:
private void RadRichTextBox_PreviewEditorKeyDown(object sender, PreviewEditorKeyEventArgs e)
{
    if (Keyboard.Modifiers.HasFlag(ModifierKeys.Alt | ModifierKeys.Control) && e.Key == Key.E)
    {
        e.SuppressDefaultAction = true;
    }
}

Don't hesitate to contact us if you have other questions.

All the best,
Boby
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Marie Claire
Top achievements
Rank 1
Answers by
Boby
Telerik team
Share this question
or