From c07f3fca8ab954efd4f7caa441b9d910a9e00e42 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 5 Apr 2012 15:02:51 +0800 Subject: [PATCH] Roo/grid/CellSelectionModel.js --- Roo/grid/CellSelectionModel.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Roo/grid/CellSelectionModel.js b/Roo/grid/CellSelectionModel.js index 2123eea6cd..64e7194289 100644 --- a/Roo/grid/CellSelectionModel.js +++ b/Roo/grid/CellSelectionModel.js @@ -291,11 +291,14 @@ Roo.extend(Roo.grid.CellSelectionModel, Roo.grid.AbstractSelectionModel, { }else if(k == e.ESC){ ed.cancelEdit(); } - - + if (newCell) { + var ecall = { cell : newCell } + this.fireEvent('beforeeditnext', ecall ); + newCell = ecall.newCell; + } if(newCell){ - - this.fireEvent('beforeeditnext',newCell); + // can modify new Cell + //Roo.log('next cell after edit'); g.startEditing.defer(100, g, [newCell[0], newCell[1]]); -- 2.39.2