title: How to stop a cell being edited in Google App Script
body: <p>If a user is in edit mode in a cell in a Google Spreadsheet, that is, the cursor is currently blinking in the cell, then I try to insert a value in that cell via an "add on" (where the user is explicitly stating they want to add a value to the cell being edited), how can I programmatically fire an event to the spreadsheet to tell it to stop editing values so that the value inserts properly?</p>
  
  <p>At present, when I try to set a value while the user is editing that cell, the value passed from the add on isn't recorded in the cell, which is quite reasonable. But, the ability to "commit" changes to that cell, stop the editing, then add my value would be really useful.</p>