H
Holden Caulfield
Does anyone know how to detect if a user has pasted code using the
right mouse button into a textarea?
I have fields in a form that autoupdate when text is changed in a
textarea, but if it is pasted using the mouse (not CTRL-V) the trigger
doesn't happen.
I tried onChange first, no luck. Detecting keystrokes and LEFT
mouseclicks was easy enough, and it works for those. But SOME users
paste stuff in without ever typing or left-clicking and it is messing
everything up.
Thanks,
Holden
PS: I think I may have to go into the murky world of right-click
detection (sorting through dozens of crappy reputed "source code
protectors") unless someone can give me a lead (or even better the
needed event handler!)
PPS: To make matters worse, it needs to work with IE 5 and up.
(Intranet)
Thanks,
Holden
right mouse button into a textarea?
I have fields in a form that autoupdate when text is changed in a
textarea, but if it is pasted using the mouse (not CTRL-V) the trigger
doesn't happen.
I tried onChange first, no luck. Detecting keystrokes and LEFT
mouseclicks was easy enough, and it works for those. But SOME users
paste stuff in without ever typing or left-clicking and it is messing
everything up.
Thanks,
Holden
PS: I think I may have to go into the murky world of right-click
detection (sorting through dozens of crappy reputed "source code
protectors") unless someone can give me a lead (or even better the
needed event handler!)
PPS: To make matters worse, it needs to work with IE 5 and up.
(Intranet)
Thanks,
Holden