Skip to content

Commit b6f2c57

Browse files
cht42svc-changelog
andauthored
Default copy selection when highlighting text in table cell (#7475)
Co-authored-by: svc-changelog <[email protected]>
1 parent effd224 commit b6f2c57

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type: improvement
2+
improvement:
3+
description: Default copy selection when highlighting text in table cell
4+
links:
5+
- https://github.com/palantir/blueprint/pull/7475

packages/table/src/tableHotkeys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ export class TableHotkeys {
452452
const { getCellClipboardData, onCopy } = this.props;
453453
const { selectedRegions } = this.state;
454454

455-
if (getCellClipboardData == null || this.grid === undefined) {
455+
if (getCellClipboardData == null || this.grid === undefined || window.getSelection()?.toString()) {
456456
return;
457457
}
458458

0 commit comments

Comments
 (0)