How can we improve WP E-Signature?

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.

I'm assuming that there is some javascript in place capturing keystrokes and opens the modal if the enter / return key is pressed. Can this be modified to ignore the enter / return key when the focus is inside of a textbox field?

1 vote
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Becky Resler shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Becky Resler commented  ·   ·  Flag as inappropriate

    I think I may have found a solution for the problem.

    File: assets/js/signdoc.js

    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.

    https://gist.github.com/beckyresler/63f5a95d45df45b6feff2508dd350e4d

    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.

Feedback and Knowledge Base