@trudb/tru-common-lib 0.2.244 → 0.2.246
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.
|
@@ -7818,7 +7818,8 @@ class TruDataGrid {
|
|
|
7818
7818
|
}
|
|
7819
7819
|
}));
|
|
7820
7820
|
this.subs.push(fromEvent(document, 'keydown').subscribe((event) => {
|
|
7821
|
-
|
|
7821
|
+
let editingCells = this.api.getEditingCells();
|
|
7822
|
+
if (event.code === 'Space' && !editingCells.length) {
|
|
7822
7823
|
event.preventDefault();
|
|
7823
7824
|
return;
|
|
7824
7825
|
}
|
|
@@ -8097,8 +8098,9 @@ class TruDataGrid {
|
|
|
8097
8098
|
onCellKeyDown = (params) => {
|
|
8098
8099
|
if (!params.event)
|
|
8099
8100
|
return;
|
|
8100
|
-
|
|
8101
|
-
|
|
8101
|
+
let event = params.event;
|
|
8102
|
+
let editingCells = this.api.getEditingCells();
|
|
8103
|
+
if (event.code === 'Space' && !editingCells.length) {
|
|
8102
8104
|
event.preventDefault();
|
|
8103
8105
|
event.stopPropagation();
|
|
8104
8106
|
this.api?.startEditingCell({
|