Suspend Find Replace Dialog when Pressing Ctrl +F

2 posts, 0 answers
  1. Jaypee
    Jaypee avatar
    13 posts
    Member since:
    Jun 2013

    Posted 23 Jul 2013 Link to this post

    How to Suspend Find Replace Dialog when Pressing Ctrl +F
  2. Anna
    Admin
    Anna avatar
    99 posts

    Posted 26 Jul 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top