@trudb/tru-common-lib 0.0.539 → 0.0.540

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.
@@ -2753,14 +2753,15 @@ class TruDataGrid {
2753
2753
  if (!event.event)
2754
2754
  return;
2755
2755
  const key = event.event;
2756
- //if (key.code === 'Space') {
2757
- // this.gridOptions.api?.setFocusedCell(event.rowIndex, event.column.getColId());
2758
- // this.gridOptions.api?.startEditingCell({
2759
- // rowIndex: event.rowIndex,
2760
- // colKey: event.column.getColId(),
2761
- // key: key.code
2762
- // });
2763
- //}
2756
+ if (key.code === 'Space') {
2757
+ key.preventDefault();
2758
+ key.stopPropagation();
2759
+ this.gridOptions.api?.startEditingCell({
2760
+ rowIndex: event.rowIndex,
2761
+ colKey: event.column.getColId(),
2762
+ key: key.code
2763
+ });
2764
+ }
2764
2765
  };
2765
2766
  this.onSearch = (setupQuery) => {
2766
2767
  let entityLoaded = this.loadedEntities.some((ref) => { return ref === this.entity[this.entity.constructor.name + 'Ref']; });