Edit this page

Keyboard Support

Keyboard Support Overview

Using the Telerik Diagramming Framework allows you to trigger most of its features using key combinations. Below you can find a list of all supported key combinations and information about the features they trigger:

  • You can use the Ctrl key to change the active mouse tool in the RadDiagram. The default tool is the PointerTool but holding down the Ctrl key allows you to use the PanTool.

  • Ctrl + C - triggers the DiagramCommands.Copy command

  • Ctrl + X - triggers the DiagramCommands.Cut command

  • Ctrl + V - triggers the DiagramCommands.Paste command

  • Ctrl + Z - triggers the DiagramCommands.Undo command

  • Ctrl + Y - triggers the DiagramCommands.Redo command

  • Ctrl + A - triggers the DiagramCommands.SelectAll command

  • Ctrl + D - triggers the DiagramCommands.Duplicate command

  • Ctrl + G - triggers the DiagramCommands.Group command

  • Ctrl + U - triggers the DiagramCommands.Ungroup command

  • F2 - triggers the DiagramCommands.BeginEdit command

  • Enter - triggers the DiagramCommands.CommitEdit command

  • Escape - triggers the DiagramCommands.CancelEdit command

  • Delete - triggers the DiagramCommands.Delete command

  • Ctrl + arrow - triggers the DiagramCommands.Nudge command to slightly nudge the selection.

  • Ctrl + Shift + arrow - triggers the DiagramCommands.Nudge command with command parameters that make sure to move the selection further.

You can find a list of all DiagramCommands in the Commands tutorial.

These key gestures are defined in the RadDiagram InputBindings collection. You can easily add and remove items from that collection thus creating custom key combinations.

For example if you want to create a custom key combination that triggers the DiagramCommands.Layout command, you can add a new KeyBinding to the RadDiagram InputBindings collection as follows:

XAML

<telerik:RadDiagram x:Name="diagram" />       

C#

diagram.InputBindings.Add(new KeyBinding(DiagramCommands.Layout, Key.L, ModifierKeys.Control));       

VB.NET

diagram.InputBindings.Add(New KeyBinding(DiagramCommands.Layout, Key.L, ModifierKeys.Control))        

See Also