Using [jqGrid](http://www.trirand.com/jqgridwiki/doku.php) I want to open a cell-editor on *double-click*, so my code includes this part:

```
  ondblClickRow: function(rowid, iRow, iCol, e)
  {
    jQuery('#jqGrid').setGridParam({cellEdit: true});
    jQuery('#jqGrid').editCell(iRow, iCol, true);
    jQuery('#jqGrid').setGridParam({cellEdit: false});
  }

```

which works fine, but I don't know how to (auto-) close the cell-editor, when user click outside of the edit element, or press *ESC*, *TAB*, *ENTER*, etc...