From 5ad41b48ffbd8633b0d1a82fc3a9510aa4391342 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Mon, 18 Feb 2019 14:41:44 -0800 Subject: [PATCH] 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 --- src/ui/components/table/ManagedTable.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/components/table/ManagedTable.js b/src/ui/components/table/ManagedTable.js index 1bf58b955..999e59447 100644 --- a/src/ui/components/table/ManagedTable.js +++ b/src/ui/components/table/ManagedTable.js @@ -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);