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

Suspend Find Replace Dialog when Pressing Ctrl +F

1 Answer 100 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Jaypee
Top achievements
Rank 1
Jaypee asked on 24 Jul 2013, 02:53 AM
How to Suspend Find Replace Dialog when Pressing Ctrl +F

1 Answer, 1 is accepted

Sort by
0
Anna
Telerik team
answered on 26 Jul 2013, 08:07 AM
Hello Joypee,

Thank you for contacting us with this question.

The easiest way to do this would be to attach your custom handler to the PreviewEditorKeyDown event of the RadRichTextBox. The code would look similar to this:

private void editor_PreviewEditorKeyDown(object sender, Telerik.Windows.Documents.PreviewEditorKeyEventArgs e)
{
     if ((Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl)) && Keyboard.IsKeyDown(Key.F))
     {
         e.SuppressDefaultAction = true;
         e.OriginalArgs.Handled = true;
     }
 }

You can read a bit more about the keyboard support offered by the RadRichTextbox here.

We hope that you are enjoying your experience with the RadRichTextBox so far. If you have any further questions, please, don't hesitate to ask.

Regards,
Anna
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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
Jaypee
Top achievements
Rank 1
Answers by
Anna
Telerik team
Share this question
or