mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
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:
@@ -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'],
|
||||
|
||||
+2
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user