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

Remove Cntrl+F on radrichtextbox.

1 Answer 97 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steve
Top achievements
Rank 1
Steve asked on 30 Apr 2012, 09:17 PM
Hi,

When i enter the radrichtextbox and do a Control+F it opens a new pop up for finding text.
Can you please let me know how to disable this pop up.


Thanks in Advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
Andrew
Telerik team
answered on 02 May 2012, 05:11 PM
Hi Steve,

In order to suppress the Control+F key combination you need to handle the PreviewEditorKeyDown event as follows:

private void editor_PreviewEditorKeyDown(object sender, Telerik.Windows.Documents.PreviewEditorKeyEventArgs e)
        {
            if (Keyboard.Modifiers.HasFlag(ModifierKeys.Control) && e.Key == Key.F)
            {
                e.SuppressDefaultAction = true;
            }
        }
This will not disable the pop, but disable the key gesture associated with it. If you don't want this pop up to be usable by your clients remove the appropriate button in the RibbonView as well.

If you have any other questions get back to us. Kind regards,
Andrew
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Steve
Top achievements
Rank 1
Answers by
Andrew
Telerik team
Share this question
or