diff --git a/src/components/AggregationPanel/AggregationPanel.js b/src/components/AggregationPanel/AggregationPanel.js index 1f572d3345..c85024338f 100644 --- a/src/components/AggregationPanel/AggregationPanel.js +++ b/src/components/AggregationPanel/AggregationPanel.js @@ -190,8 +190,23 @@ const AggregationPanel = ({ ); } + const handleKeyDown = (e) => { + if ((e.ctrlKey || e.metaKey) && e.key === 'c') { + const selection = window.getSelection(); + if (selection && selection.toString().length > 0) { + // Stop the event from propagating to parent handlers + e.stopPropagation(); + // Let the default copy behavior happen by not calling preventDefault + return; + } + } + }; + return ( -