To add to the list of ideas, I would recommend you override the Ajax.InPlaceEditor#checkForEscapeOrReturn method to do what you want since that's where this submit event is getting fired from.
Ajax.InPlaceEditor.addMethods({ checkForEscapeOrReturn: function(e) { if (!this._editing || e.ctrlKey || e.altKey || e.shiftKey) return; if (Event.KEY_ESC == e.keyCode) this.handleFormCancellation(e); else if (Event.KEY_RETURN == e.keyCode) return; //this.handleFormSubmission(e); } }); Ideally you would pass in an extra option when instantiating the IPE and then in the above code snippet you could check for the existence of an option before blocking the form submit event. -justin P.S. Your users might see this as a bug since submitting a form on "return key press" is expected behavior. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---