Firebug.Editor adds listeners for certain keys like enter. In the bound listener, it calls Firebug.Editor.stopEditing(false);
The stop editing method detaches listeners, removes classes and then calls endEditing on the editor outside of a try/catch block. What this means is that there is no way for a the editor to validate the value. What I would prefer is that the inline editor could return a boolean or throw an error in endEditing if the value is not valid, and the editor would stay open. Right now, the only hack seems to be to use a window timeout to start the editor back up from the endEditing method when the value is invalid which is quite a nasty hack or "hard code" the editor to listen for the RETURN key and intercept it before Firebug.Editor gets its hands on the event. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/firebug?hl=en -~----------~----~----~----~------~----~------~--~---
