@trudb/tru-common-lib 0.0.607 → 0.0.609

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,20 @@ 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.event.stopPropagation();
2990
+ params.api.startEditingCell({
2991
+ rowIndex: focusedCell?.rowIndex,
2992
+ colKey: focusedCell?.column,
2993
+ });
2994
+ return true;
2995
+ }
2984
2996
  return false;
2985
2997
  };
2986
2998
  this.defaultColDef = {