H
halbenca
Is this possible with Javascript in anyway?
Is this possible with Javascript in anyway?
Is this possible with Javascript in anyway?
Yes, it is possible to detect a paste action.
Here's a simple exemple, preventing to paste in a textarea :
(e-mail address removed) a écrit :
Anyway,
that doesn't work at all !
report under textbox tells me : 224 224
I'm sorry i wasn't careful enough about that...
I'm going to see if I can do something about it
P.S. Ton mac est si vieux ?
Oups... You're totally rights... >_<
I'm going to see if I can do something about it
P.S. Ton mac est si vieux ?
(e-mail address removed) a écrit :
The so noisy G4 MDD (1,25Mhz OS 10.3.9) 2 years old.
P.S. : qu'est-ce qu'il a le Messenger de ton Mozilla ?
(pour ne pas gommer la signature de l'envoyeur dans les réponses)
Here it is.
I forgot to put the "e.ctrlKey" check ( to check wether control key was
pressed, or not.
Thing is I don't have any way to try javascript on Safari
(e-mail address removed) a écrit :
On Mac Control key is not used to copy/paste/etc
we use touch Command (Pomme).
With FireFox, with Command + v and Command + z
keyCode returns 224
Command associated with others touchs (x, a, p, ... ) keyCode returns
correspondant character/touch key code.
My tests show Safari doesn't report touch Command (Pomme - Apple)
nor keyCode as if anything was pressed.
My test with Opera : Opera doesn't give a special code for
Command+v Command+c (normal letter key code)
Is this possible with Javascript in anyway?
Yes, it is possible to detect a paste action.
Here's a simple exemple, preventing to paste in a textarea :
(e-mail address removed) said the following on 12/2/2006 6:09 AM:
No it doesn't. Open your test page, put the cursor in the textarea, and
press the key combination of <Shift><Insert>
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.