API Reference > presentation-components > Tree > UnifiedSelectionTreeEventHandler > createKeysForSelection createKeysForSelection MethodProtected Returns node keys that should be added, removed or used to replace unified selection. Default implementation returns keys of supplied nodes. createKeysForSelection(nodes: TreeNodeItem[], _selectionType: SelectionChangeType): { T } | ReadonlyArray<{ T } | { T } | { T } | { T } | { T } | { T } | { T } | { T }> Parameter Type Description nodes TreeNodeItem[] _selectionType SelectionChangeType Returns - { T } | ReadonlyArray<{ T } | { T } | { T } | { T } | { T } | { T } | { T } | { T }> Defined in presentation/components/src/tree/controlled/UseUnifiedSelection.ts Line 166 Last Updated: 13 June, 2024