PDA

View Full Version : EditorGrid and Keyboard Nav question



bitdifferent
28 May 2007, 7:03 AM
Hi, I've got an editable grid with clicksToEdit=1. When I type in a cell and press return, I want to finish editing and have no cell selected. At the moment pressing return ends the edit, moves down a row, and starts editing that cell. I'm stumped as to how to do this despite reading loads of forum posts. Any suggestions please?

My selectionmodel by the way is the unofficial checkBoxRowSelectionModel from another forum post.

TIA

Matt

bitdifferent
28 May 2007, 7:39 AM
Well I've hacked it to do what I want by commenting out these lines in ext itself



26696 // if(e.shiftKey){^M
26697 // newCell = g.walkCells(ed.row-1, ed.col, -1, this.acceptsNav, this);
26698 // }else
26699 // newCell = g.walkCells(ed.row+1, ed.col, 1, this.acceptsNav, this);
26700 // }


that will do for now but obviously I need to change this in my subclassed selection model - unless there's some other way?