Add an OnAccept event so that we don't the user clicked OK or Canel

The current OnEditStop event doesn't distinguish if the user clicked the OK or Cancel button, and obviously we need that info to determine if we should accept the edits. Thanks.