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

CB-418
This commit is contained in:
Naumov Alexey
2020-10-13 18:22:52 +03:00
parent 427b66b77b
commit 4ce12c7945
2 changed files with 3 additions and 3 deletions
@@ -4,7 +4,7 @@ export default [
['data_transfer_dialog_configuration_title', 'Export configuration'],
['data_transfer_dialog_preparation', 'We prepare your file for export. Please wait...'],
['data_transfer_notification_preparation', 'We prepare your file for download. Please wait...'],
['data_transfer_notification_ready', 'File ready to download'],
['data_transfer_notification_ready', 'File is ready to download'],
['data_transfer_notification_error', 'Preparation failed or canceled'],
['data_transfer_notification_download', 'Download'],
['data_transfer_notification_delete', 'Delete'],
@@ -45,7 +45,7 @@ interface CellKeyDownEvent extends AgGridEvent{
}
const EVENT_KEY_CODE = {
C: 'c',
C: 'KeyC',
};
interface TemporarySelectionRange {
@@ -103,7 +103,7 @@ export class RangeController implements IRangeController {
}
private handleDocumentCopy(event: KeyboardEvent) {
if (event.key.toLowerCase() === EVENT_KEY_CODE.C && (event.ctrlKey || event.metaKey)) {
if (event.code === EVENT_KEY_CODE.C && (event.ctrlKey || event.metaKey)) {
this.copySelectedData();
}
}