HighDots Forums  

Detect CTRL + V

Javascript JavaScript language (comp.lang.javascript)


Discuss Detect CTRL + V in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
leodippolito@gmail.com
 
Posts: n/a

Default Detect CTRL + V - 05-06-2005 , 08:03 AM






Hello,

How can I detect the press of CTRL + V in an input of type text?

TIA,

Leonardo


Reply With Quote
  #2  
Old   
Martin Honnen
 
Posts: n/a

Default Re: Detect CTRL + V - 05-06-2005 , 09:56 AM








leodippolito (AT) gmail (DOT) com wrote:


Quote:
How can I detect the press of CTRL + V in an input of type text?
IE/Win has
<input onpaste
onbeforepaste
see
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/events/onpaste.asp>
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/events/onbeforepaste.asp>

--

Martin Honnen
http://JavaScript.FAQTs.com/


Reply With Quote
  #3  
Old   
Stewart Gordon
 
Posts: n/a

Default Re: Detect CTRL + V - 05-10-2005 , 11:47 AM



leodippolito (AT) gmail (DOT) com wrote:
Quote:
Hello,

How can I detect the press of CTRL + V in an input of type text?
Why do you want to detect all pressings of this key combination,
regardless of what it's assigned to do on the user's browser/OS combination?

It doubt it's possible, but still....

Stewart.

--
My e-mail is valid but not my primary mailbox. Please keep replies on
the 'group where everyone may benefit.


Reply With Quote
  #4  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: Detect CTRL + V - 05-15-2005 , 12:07 PM



Stewart Gordon wrote:

Quote:
--
My e-mail is valid but not my primary mailbox. Please
keep replies on the 'group where everyone may benefit.
I like that. However, sometimes private communication is better (as would
apply for this posting, q.e.d.), so you should include your primary mailbox
in the Reply-To header. From my now four years of regular Usenet
experience, it is highly unlikely that spambots will access that header.


PointedEars


Reply With Quote
  #5  
Old   
Dr John Stockton
 
Posts: n/a

Default Re: Detect CTRL + V - 05-15-2005 , 04:35 PM



JRS: In article <5452095.HZS1jqRAKs (AT) PointedEars (DOT) de>, dated Sun, 15 May
2005 18:07:03, seen in news:comp.lang.javascript, Thomas 'PointedEars'
Lahn <PointedEars (AT) web (DOT) de> posted :
Quote:
Stewart Gordon wrote:

--
My e-mail is valid but not my primary mailbox. Please
keep replies on the 'group where everyone may benefit.

I like that. However, sometimes private communication is better (as would
apply for this posting, q.e.d.), so you should include your primary mailbox
in the Reply-To header. From my now four years of regular Usenet
experience, it is highly unlikely that spambots will access that header.

Your experience is limited; your advice misleading; your maturity long-
awaited; your naivety impressive.

One does not really care whether spambots will access that header; one
cares about whether spam will be sent to an address given to the world
only in Usenet Reply-To headers.

Usenet Reply-To headers get in News article sets in personal computers
(however, in Turnpike they are encrypted); if used for replies, or if
saved as potentially useful, or if otherwise stored, they can be picked
up by malware and used for sending spam and virus mail. And I can
assure you that this can happen within a day or two; the French have
demonstrated this recently.

One should not present in News any E-address that one wants to use in
perpetuity - and one should present only addresses that one is entitled
to present.


In this 60th anniversary year - indeed, in this anniversary month, would
it not have been well for you to eschew the attitudes of your presumed
predecessors?

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME ©
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.