Detect CTRL + V

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • leodippolito@gmail.com

    #1

    Detect CTRL + V

    Hello,

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

    TIA,

    Leonardo

  • Martin Honnen

    #2
    Re: Detect CTRL + V



    leodippolito@gm ail.com wrote:

    [color=blue]
    > How can I detect the press of CTRL + V in an input of type text?[/color]

    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.a sp>

    --

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

    Comment

    • Stewart Gordon

      #3
      Re: Detect CTRL + V

      leodippolito@gm ail.com wrote:[color=blue]
      > Hello,
      >
      > How can I detect the press of CTRL + V in an input of type text?[/color]

      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.

      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: Detect CTRL + V

        Stewart Gordon wrote:
        [color=blue]
        > --
        > My e-mail is valid but not my primary mailbox. Please
        > keep replies on the 'group where everyone may benefit.[/color]

        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

        Comment

        • Dr John Stockton

          #5
          Re: Detect CTRL + V

          JRS: In article <5452095.HZS1jq RAKs@PointedEar s.de>, dated Sun, 15 May
          2005 18:07:03, seen in news:comp.lang. javascript, Thomas 'PointedEars'
          Lahn <PointedEars@we b.de> posted :[color=blue]
          >Stewart Gordon wrote:
          >[color=green]
          >> --
          >> My e-mail is valid but not my primary mailbox. Please
          >> keep replies on the 'group where everyone may benefit.[/color]
          >
          >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.[/color]


          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.demo n.co.uk/news-use.htm> : about usage of News.
          No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.

          Comment

          Working...