Issues on Enter / Return in Textbox Field
I have a document that requires the signer to enter some information. I have added a textbox field to the document. If a signer tries to add a line break within the textbox field by hitting the enter / return key, it opens up the signature modal. If you cancel out of the modal, you see that a line break was added to the textbox field, but this is less than user friendly. And most users wouldn't realize that they need to do this.
Becky Resler commented
I think I may have found a solution for the problem.
In the makeSignatureKeyboardAccessible() function, when checking if the keypress code == 13 (i.e. is the return / enter key), check to see if the keypress was made inside of a textarea. If it was, then do not call signaturePopup.click();
I've created a gist with my changes. The gist includes the code that starts on line 631 of the signdoc.js file.
It would be nice if this (or some form of this) could be incorporated into the plugin so that my changes aren't lost after applying plugin updates.