Changing the Multi Selection Modifier (version 1.x)
Tips & TricksSummary
Changing the default multi selection gesture from Ctrl+Click to another modifier
Description
To change the default gesture for multi selection, use property multiSelectionRecognizer. Set the property to an arbitrary IEventRecognizer, e.g. to a key event. The recognizer is queried when an item is selected to decide whether to enhance the selection.
// change to Shift+Click
graphEditorInputMode.multiSelectionRecognizer = yfiles.input.KeyEvents.SHIFT_PRESSED;
You can create a recogizer that runs custom code using EventRecognizers.create.
Categories this article belongs to:
yFiles for HTML
Applies to:
yFiles for HTML: 1.3, 1.4
Keywords:
Multiple - Select - Control - Ctrl - Click - multiSelectionRecognizer - IEventRecognizer