diff --git a/frontend/src/shared/ui/components/KsDataGrid.vue b/frontend/src/shared/ui/components/KsDataGrid.vue index ba1283f6..ac2f6b39 100644 --- a/frontend/src/shared/ui/components/KsDataGrid.vue +++ b/frontend/src/shared/ui/components/KsDataGrid.vue @@ -190,34 +190,10 @@ import type { NavigateToNextCellParams, CellPosition } from 'ag-grid-community' function navigateToNextCell(params: NavigateToNextCellParams): CellPosition | null { - const previousCell = params.previousCellPosition const suggestedNextCell = params.nextCellPosition if (params.key === 'Enter' || String(params.key) === '13') { - const allColumns = params.api.getAllGridColumns() - const editableCols = allColumns.filter(c => { - const colDef = c.getColDef() - return colDef.editable === true || typeof colDef.editable === 'function' - }) - - if (editableCols.length > 0) { - const currentColId = previousCell.column.getColId() - const currentIndex = editableCols.findIndex(c => c.getColId() === currentColId) - - if (currentIndex >= 0 && currentIndex < editableCols.length - 1) { - const nextCol = editableCols[currentIndex + 1] - const colId = nextCol.getColId() - setTimeout(() => { - params.api.startEditingCell({ rowIndex: previousCell.rowIndex, colKey: colId }) - }, 30) - return { - rowIndex: previousCell.rowIndex, - column: nextCol, - rowPinned: previousCell.rowPinned - } - } - return null - } + return suggestedNextCell } return suggestedNextCell