Bullet Shortcut Key

3 posts, 1 answers
  1. Anthony
    Anthony avatar
    58 posts
    Member since:
    Aug 2011

    Posted 22 Jan 2013 Link to this post

    Hi,

    Just trying to figure out if the RadRichTextBox has a shortcut key for assigning bullets? The standard Ctrl + Shift + L does not work.

    Thanks
    Anthony
  2. Answer
    Petya
    Admin
    Petya avatar
    975 posts

    Posted 24 Jan 2013 Link to this post

    Hi Anthony,

    All supported keyboard shortcuts are listed here, and as you can see, the Ctrl+Shift+L is not one of the them. However, if you wish to implement the behavior yourself, you can do that with either of the following approaches:
    • Handle the PreviewEditorKeyDown event as shown in the article referenced above and trigger the ToggleBulletsCommand:
      if (Keyboard.Modifiers.HasFlag(ModifierKeys.Control) && Keyboard.Modifiers.HasFlag(ModifierKeys.Shift) && e.Key == Key.L)
      {
          editor.Commands.ToggleBulletsCommand.Execute();
      }
    • We introduced a static method RegisterCommand in one of our latest internal builds, which will also be available in Q1 2013, expected in the end of February. It can be used in order to register a keyboard shortcut for a routed command or in your case as follows:
      RadRichTextBox.RegisterCommand(RichTextBoxCommands.ToggleBullets, Key.L, ModifierKeys.Control|ModifierKeys.Shift);

    I hope this is helpful! Let us know if there is anything else we can assist you with. 

    Greetings,
    Petya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Anthony
    Anthony avatar
    58 posts
    Member since:
    Aug 2011

    Posted 24 Jan 2013 Link to this post

    Hi,

    Thankyou for the quick reply.

    Thanks
    Anthony

Back to Top