// When free space inside ScrollRect is clicked: // Left click: deselect selected file(s) // Right click: show context menu public void OnPointerClick(PointerEventData eventData) { if (eventData.button == PointerEventData.InputButton.Left) { fileBrowser.DeselectAllFiles(); } else if (eventData.button == PointerEventData.InputButton.Right) { fileBrowser.OnContextMenuTriggered(eventData.position); } }
public void OnDeselectAllButtonClicked() { Hide(); fileBrowser.DeselectAllFiles(); }