Remove Cntrl+F on radrichtextbox.

2 posts, 1 answers
  1. Steve
    Steve avatar
    7 posts
    Member since:
    Sep 2011

    Posted 30 Apr 2012 Link to this post


    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.
  2. Answer
    Andrew avatar
    140 posts

    Posted 02 May 2012 Link to this post

    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,
    the Telerik team

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

  3. DevCraft banner
Back to Top