With webapps users may type or may paste. If you need special behaviour (e.g. spell-checking, form auto-completion etc) on text input you need to catch the paste event. I have used a couple of login forms that don't detect that I paste passwords from my password store, and so don't let me submit.

If there was a plugin that provided “onpaste” (or paste() in jQuery notation) in a clean all-platforms (remember ms-windows people have no command key, and a poorly defined meta key), and all reasonable versions; this would save alot of development time. Should work on mobile; but this is less urgent, as pasting stuff is less likely on mobile.

There is some support inside JS for paste events, but it is handled in an erratic fashion across the browsers. Creating this will require creation of alot of test scripts. Unit-tests will be essential, to make gathering feedback cheaper.
This will be hosted on github as my other jQuery modules as soon as I actually start the development.

Current browser support:

  • To be written...

jQuery-paste

RSS. Share: Share this resource on your twitter account. Share this resource on your linked-in account. G+

jQuery-paste

RSS. Share: Share this resource on your linked-in account. Share this resource on your twitter account. G+ ­ Follow