@trudb/tru-common-lib 0.0.607 → 0.0.608
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.
|
@@ -2979,8 +2979,19 @@ class TruDataGrid {
|
|
|
2979
2979
|
};
|
|
2980
2980
|
this.onSuppressKeyboardEvent = (params) => {
|
|
2981
2981
|
let isTabKey = params.event.key === 'Tab';
|
|
2982
|
+
let isArrowDown = params.event.key === 'ArrowDown';
|
|
2983
|
+
let isArrowUp = params.event.key === 'ArrowUp';
|
|
2984
|
+
let isAltKey = params.event.altKey;
|
|
2982
2985
|
if (isTabKey)
|
|
2983
2986
|
this.gridOptions.api.stopEditing();
|
|
2987
|
+
let focusedCell = params.api.getFocusedCell();
|
|
2988
|
+
if (isAltKey && (isArrowDown || isArrowUp)) {
|
|
2989
|
+
params.api.startEditingCell({
|
|
2990
|
+
rowIndex: focusedCell?.rowIndex,
|
|
2991
|
+
colKey: focusedCell?.column
|
|
2992
|
+
});
|
|
2993
|
+
return true;
|
|
2994
|
+
}
|
|
2984
2995
|
return false;
|
|
2985
2996
|
};
|
|
2986
2997
|
this.defaultColDef = {
|