title: How to prevent closing of cell editing in ag-grid on "Other Cell Focus"
body: <p>I am working on an editable table in Angular application with <em>ag-grid</em> library. I would like to keep editing cells (in full row edit mode) until I finish with it and then close the editors manually via API. The problem is that the editor is closing on other cell click/focus (on some other line) as described <a href="https://www.ag-grid.com/javascript-grid-cell-editing/#stop-end-editing" rel="nofollow noreferrer">here</a>:</p>
  
  <blockquote>
    <p>The grid will stop editing when any of the following happen:</p>
    
    <ul>
    <li>Other Cell Focus: If focus in the grid goes to another cell, the editing will stop.</li>
    </ul>
  </blockquote>
  
  <p>I cannot figure out how to disable this, if it is possible.  Installing the <code>onCellMouseDown()</code> hook does not help, because the <code>cellFocused</code> event is fired before <code>cellMouseDown</code>. Therefore, the editing stops before I have a chance to intercept the <code>mousedown</code> event.</p>
  
  <p>Here is my <a href="https://stackblitz.com/edit/ag-grid-custom-editor" rel="nofollow noreferrer">stackblitz</a> little extract with related pieces of code.</p>
  
  <p>The need for such scenario is that I want to validate the entry and not to allow a used to quit the editing if the form is not valid. The only workaround I found so far is that on any click outside of editing cells when the editor closing I reopen it right away in <code>onRowEditingStopped()</code> hook unless the editor has been closed via 'OK' button.</p>