Merge pull request #183 from dbeaver/fix/copy-cmd-c

fix(plugin-data-spreadsheet): CB-418 copy cell by Cmd+C  lowerCase fix
This commit is contained in:
Alexey
2020-10-13 18:26:56 +03:00
committed by GitHub
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 === EVENT_KEY_CODE.C && (event.ctrlKey || event.metaKey)) {
if (event.code === EVENT_KEY_CODE.C && (event.ctrlKey || event.metaKey)) {
this.copySelectedData();
}
}