RadRichTextBox - enter not working

1 Answer 53 Views
RichTextBox
alex
Top achievements
Rank 2
Bronze
Iron
Iron
alex asked on 18 Jun 2023, 05:42 AM | edited on 18 Jun 2023, 05:43 AM

Hello,

I noticed that the RadRichTextBox is not working as expected.

According to the documentation, SHIFT + ENTER should create a new line and ENTER a new paragraph.
For some reason the ENTER key is not working. My final go is to switch between SHIFT + ENTER and ENTER as described in the following link:

https://www.telerik.com/forums/wpf-radrichtextbox---swapping-enter-key-and-shift-enter-keys-behavior

How can I do that? the AcceptReturn is set to True, but the PreviewKeyDown event is not triggered for ENTER.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 19 Jun 2023, 10:51 AM

Hi Alex,

The event used in the article is PreviewEditorKeyDown. I've tested this in a new sample project with the latest version and this approach still works as expected. 

Let me know if I can assist you further.

Regards,
Dimitar
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.

alex
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 19 Jun 2023, 04:52 PM | edited

Thank you Dimitar for your reply.

I used PreviewEditorKeyDown, it was a mistake in the question. I reach the event handler code for every key except the Enter key.

Can you attach your demo project? I will compare it with mine. 

Dimitar
Telerik team
commented on 20 Jun 2023, 05:57 AM

Hi Alex,

I have attached the sample project. 

Let me know if I can assist you further.
Tags
RichTextBox
Asked by
alex
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Dimitar
Telerik team
Share this question
or