Roo/grid/CellSelectionModel.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 6 Apr 2012 08:02:26 +0000 (16:02 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 6 Apr 2012 08:02:26 +0000 (16:02 +0800)
Roo/grid/CellSelectionModel.js

index 9eb7628..36557fa 100644 (file)
@@ -285,22 +285,22 @@ Roo.extend(Roo.grid.CellSelectionModel, Roo.grid.AbstractSelectionModel,  {
             
             e.stopEvent();
             
-        }else if(k == e.ENTER &&  !e.ctrlKey){
+        } else if(k == e.ENTER &&  !e.ctrlKey){
             ed.completeEdit();
             e.stopEvent();
             newCell = g.walkCells(ed.row, ed.col+1, 1, this.acceptsNav, this);
-        }else if(k == e.ESC){
+        
+               } else if(k == e.ESC){
             ed.cancelEdit();
         }
+               
         if (newCell) {
-            var ecall = { cell : newCell } 
+            var ecall = { cell : newCell };
             this.fireEvent('beforeeditnext', ecall );
             newCell = ecall.cell;
         }
+               
         if(newCell){
-            // can modify new Cell
-
-            
             //Roo.log('next cell after edit');
             g.startEditing.defer(100, g, [newCell[0], newCell[1]]);
         } else if (forward) {