- processEvent : function(name, e, grid, rowIndex, colIndex){
- if (name == 'mousedown') {
- var record = grid.store.getAt(rowIndex);
- record.set(this.dataIndex, !record.data[this.dataIndex]);
- return false; // Cancel row selection.
+ processEvent: function(type, view, cell, recordIndex, cellIndex, e) {
+ if (type == 'mousedown' || (type == 'keydown' && (e.getKey() == e.ENTER || e.getKey() == e.SPACE))) {
+ var record = view.panel.store.getAt(recordIndex),
+ dataIndex = this.dataIndex,
+ checked = !record.get(dataIndex);
+
+ record.set(dataIndex, checked);
+ this.fireEvent('checkchange', this, recordIndex, checked);
+ // cancel selection.
+ return false;