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

Bullet Shortcut Key

2 Answers 105 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Veteran
Anthony asked on 22 Jan 2013, 10:08 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Petya
Telerik team
answered on 24 Jan 2013, 04:10 PM
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.

0
Anthony
Top achievements
Rank 1
Veteran
answered on 24 Jan 2013, 09:37 PM
Hi,

Thankyou for the quick reply.

Thanks
Anthony

Tags
RichTextBox
Asked by
Anthony
Top achievements
Rank 1
Veteran
Answers by
Petya
Telerik team
Anthony
Top achievements
Rank 1
Veteran
Share this question
or