fix(plugin-data-spreadsheet): CB-418 copy cell by Cmd+C

CB-418
This commit is contained in:
Naumov Alexey
2020-10-13 17:37:49 +03:00
parent 023eeda045
commit da9bf894e7
@@ -45,7 +45,7 @@ interface CellKeyDownEvent extends AgGridEvent{
}
const EVENT_KEY_CODE = {
C: 67,
C: 'C',
};
interface TemporarySelectionRange {
@@ -103,7 +103,7 @@ export class RangeController implements IRangeController {
}
private handleDocumentCopy(event: KeyboardEvent) {
if (event.keyCode === EVENT_KEY_CODE.C && event.ctrlKey) {
if (event.key === EVENT_KEY_CODE.C && (event.ctrlKey || event.metaKey)) {
this.copySelectedData();
}
}