Solves the bug which destroyed multi selection on ctrl+click

Summary: Soves the bug which caused the multiselection to clear off when one did ctrl+click

Reviewed By: jknoxville

Differential Revision: D14103906

fbshipit-source-id: 834d79e1c86a89b4d90c26e8db1850c1e8712a5d
This commit is contained in:
Pritesh Nandgaonkar
2019-02-18 14:41:44 -08:00
committed by Facebook Github Bot
parent cab61b0c15
commit 5ad41b48ff

View File

@@ -348,8 +348,7 @@ class ManagedTable extends React.Component<
document.addEventListener('mouseup', this.onStopDragSelecting);
if (
((e.metaKey && process.platform === 'darwin') ||
(e.ctrlKey && process.platform !== 'darwin')) &&
((e.metaKey && process.platform === 'darwin') || e.ctrlKey) &&
this.props.multiHighlight
) {
highlightedRows.add(row.key);