@trudb/tru-common-lib 0.2.292 → 0.2.294

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6512,14 +6512,14 @@ class TruDataGridPkeyCellRenderer {
6512
6512
  this.dataGridClipboard = dataGridClipboard;
6513
6513
  }
6514
6514
  onRightClick = (event) => {
6515
- event.preventDefault();
6516
- this.copyIsDisabled = this.params.api.getSelectedRows().length ? false : true;
6517
- this.pasteIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
6518
- this.insertAtTopIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
6519
- this.contextMenuPosition.x = event.pageX + 'px';
6520
- this.contextMenuPosition.y = (event.pageY) + 'px';
6521
- this.contextMenu.menu?.focusFirstItem('mouse');
6522
- this.contextMenu.openMenu();
6515
+ //event.preventDefault();
6516
+ //this.copyIsDisabled = this.params.api.getSelectedRows().length ? false : true;
6517
+ //this.pasteIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
6518
+ //this.insertAtTopIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
6519
+ //this.contextMenuPosition.x = event.pageX + 'px';
6520
+ //this.contextMenuPosition.y = (event.pageY) + 'px';
6521
+ //this.contextMenu.menu?.focusFirstItem('mouse');
6522
+ //this.contextMenu.openMenu();
6523
6523
  };
6524
6524
  onMouseDown = (event) => {
6525
6525
  };
@@ -8144,16 +8144,18 @@ class TruDataGrid {
8144
8144
  if (!target.classList.contains('ag-cell-last-left-pinned')) {
8145
8145
  rowData.api.deselectAll();
8146
8146
  }
8147
- if (!rowData.event.rowData) {
8148
- if (rowData.event.ctrlKey) {
8149
- if (this.rowSelectedOnMousedown)
8150
- rowData.node.setSelected(false);
8151
- else
8147
+ else {
8148
+ if (!rowData.event.shiftKey) {
8149
+ if (rowData.event.ctrlKey) {
8150
+ if (this.rowSelectedOnMousedown)
8151
+ rowData.node.setSelected(false);
8152
+ else
8153
+ rowData.node.setSelected(true);
8154
+ }
8155
+ else {
8156
+ rowData.api.deselectAll();
8152
8157
  rowData.node.setSelected(true);
8153
- }
8154
- else {
8155
- rowData.api.deselectAll();
8156
- rowData.node.setSelected(true);
8158
+ }
8157
8159
  }
8158
8160
  }
8159
8161
  };