documentationfor yFiles for HTML 3.0.0.1

List of Keyboard Shortcuts

This section lists the default keyboard shortcuts supported by yFiles for HTML. Most of these interactions are handled by the main input modesGraphEditorInputMode and GraphViewerInputMode and therefore are only supported if one of these input modes is installed. For details about input modes and the supported interactions see User Interaction and Customizing User Interaction.

The keyboard shortcuts can be changed using Resource Keys. New keyboard shortcuts can be added using the KeyboardInputMode. Also, keyboard shortcuts can be tied to other handlers using the KeyboardInputMode as shown in Customizing Keyboard Input.

Keyboard shortcuts using Ctrl use on macOS.

Graph Editing

Action Shortcut Resource Key Description
CopyCtrl+C / Ctrl+InsertCopyKeyCopies the selected elements to the clipboard.
CutCtrl+X / Shift ⇧+DeleteCutKeyCuts the selected elements, i.e. copies them to the clipboard and deletes the original elements.
PasteCtrl+V / Shift ⇧+InsertPasteKeyPastes the in the clipboard, i.e. copies them from the clipboard into the graph.
DuplicateCtrl+DDuplicateKeyDuplicates the selected elements without modifying the clipboard.
UndoCtrl+ZUndoKeyReverts the last edit.
RedoCtrl+Y / Ctrl+Shift ⇧+ZRedoKeyRestores the edit which has been undone last.
DeleteDeleteDeleteKeyDeletes the selected items.
Edit LabelF2Enter ↵EditLabelKeyEdits the selected label or the label at the selected label owner. Adds a new one if there is none.
Add LabelShift ⇧+F2AddLabelKeyAdds a new label to the selected label owner.
Reverse EdgeCtrl+RReverseEdgeKeyswaps start and end port of an edge.

Grouping and Folding

Action Shortcut Resource Key Description
Adjust Group Node SizeCtrl+Shift ⇧+GAdjustGroupNodeSizeKeyAdjusts the size of a group node to enclose its child nodes.
Group SelectionCtrl+GGroupSelectionKeyCreates a new group node which contains the selected nodes as child nodes.
Ungroup SelectionCtrl+UUngroupSelectionKeyRemoves the selected group node and moves its child nodes into its parent.
Collapse GroupCtrl+CollapseGroupKeyCollapses the selected group nodes.
Expand GroupCtrl+ExpandGroupKeyExpands the selected folder nodes.
ToggleExpansionStateAlt+Shift ⇧+ / Alt+Shift ⇧+ToggleExpansionStateKeyExpands the selected folder nodes or collapses the selected group nodes.
Enter GroupAlt+EnterGroupKeyEnters the selected group node, i.e. sets the node as local root.
Exit GroupAlt+ExitGroupKeyExits the selected group node, i.e. sets its parent as local root

Viewport

Action Shortcut Resource Key Description
Zoom OutCtrl+-DecreaseZoomKeyDecreases the canvas zoom.
Zoom InCtrl++IncreaseZoomKeyIncreases the canvas zoom.
Zoom 100%Ctrl+0Alt+0ZoomKeyZooms to 1:1, i.e. one pixel on the screen is one unit in world coordinates.
Fit Graph BoundsAlt+1FitGraphBoundsKeySizes the view that the current graph fits the canvas.
Zoom To SelectionAlt+2ZoomToSelectionKeyBrings the selection into the middle of the canvas.
Zoom To Current ItemAlt+3ZoomToCurrentItemKeyBrings the current item into the middle of the canvas.
Scroll Page DownPage ↑ScrollPageDownKeyScrolls the canvas a down its entire height.
Scroll Page UpPage ↓ScrollPageUpKeyScrolls the canvas up its entire height.

Keyboard Navigation and Selection

Action Shortcut Resource Key Description
Move SelectionMoveLeftKey MoveRightKey MoveUpKey MoveDownKeySelects the next element in the key direction and deselects the other selected items.
Move FocusCtrl+ / Ctrl+ / Ctrl+ / Ctrl+MoveLeftFocusKey MoveFocusRightKey MoveFocusUpKey MoveFocusDownKeySets the next element in the key direction as current item.
Extend SelectionShift ⇧+ / Shift ⇧+ / Shift ⇧+ / Shift ⇧+ExtendSelectionLeftKey ExtendSelectionRightKey ExtendSelectionUpKey ExtendSelectionDownKeyAdds the element in the key direction to the selected elements.
Select AllCtrl+ASelectAllKeySelects all nodes and bends.
Deselect AllCtrl+Shift ⇧+ADeselectAllKeyClears the current selection.
Toggle SelectionCtrl+SpaceToggleItemSelectionKeyDeselects the first selected item. If there is none, the current item will be selected.

Printing

Action Shortcut Resource Key Description
PrintCtrl+PPrintKeyPrints the current canvas.
Print PreviewCtrl+F2PrintPreviewKeyOpens a print dialog and prints the current canvas.