Unplanned
Last Updated: 02 Sep 2019 12:25 by ADMIN
Pawan
Created on: 27 Aug 2019 12:28
Category: RichTextBox
Type: Bug Report
2
RichTextBox: Keyboard commands are not working for controls inside InlineUIContainer
Keyboard commands are not working for controls inside the InlineUIContainer. The reason for this is that RichTextBox is handling them.
The commands are: Left, Right, Backspace, Delete, Tab, Ctrl+C, Ctrl+V among others.

Workaround:
Attach custom event handler to the PreviewEditorKeyDown event of the RichTextBox. This event should set "e.SuppressDefaultAction = true" when the focus is in the InineUIContainer.
4 comments
ADMIN
Vladislav
Posted on: 02 Sep 2019 12:25

 

Hello Pawan,

I answered in the support ticket but am posting my reply here as well in case anyone else encounters the same question.

I'm sorry for the misunderstanding. For the TabNavigation to work you will need to handle the Tab key inside the PreviewEditorKeyDown event and set e.SuppressDefaultAction to true.

 

Regards,
Vladislav
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Pawan
Posted on: 28 Aug 2019 18:19

Hi Vladislav,

I am aware of TextBox's AcceptTab property, but I have button, Combobox, Datetimepicker, etc. inside the InLineUIContainer, so is there any way to handle the TabNavigation inside InlineUIConatainer.

Regards,

Pawan

ADMIN
Vladislav
Posted on: 28 Aug 2019 08:08

Hello Pawan,

I'm glad that the workaround satisfies your needs.

As for the second part - you can set the AcceptsTab property of TextBox control to true. Additionally, if you would like to support inserting new lines in the text box, you can set the AcceptsReturn to true.

I hope this information is helpful.

Regards,
Vladislav
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Pawan
Posted on: 27 Aug 2019 13:30

Thanks for your workaround, it is working for   Left, Right, Backspace, Delete, Ctrl+C, Ctrl+V, But controls are not following Tab order inside InlineUIContainer, the tab key press moves the focus and caret position to parent radrichtextbox.

Is there any workaround for Tab key as well?