Article View: borland.public.jbuilder.java.swing
Article #7595Re: Catching Ctrl-V (Paste) event
From: Johan Forsberg
Date: Mon, 22 Jan 2001 15:26
Date: Mon, 22 Jan 2001 15:26
12 lines
1548 bytes
1548 bytes
"Eduardo Oliveira" <eduardo.oliveira@s-tecno.pt> skrev i meddelandet
news:3a66bf3f$1_2@dnews...
> OK so here it is the code:
>
> private void myKeyTyped(KeyEvent e) {
> if (e.isControlDown() && e.getKeyChar() == KeyEvent.VK_V)){
> e.consume(); ^^^^^^^^^^^^^^
> } Error!
> }
Either e.getKeyChar()=='V' or e.getKeyCode()==KeyEvent.VK_V !
Technical Details
Message-ID:
<94hinn$oeh11@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-ge.switch.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!not-for-mailReferences:
<3a65c91b_1@dnews> <MPG.14d03421dbd0503989eb3@forums.borland.com> <3a66bf3f$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,77b664eeb05562fc X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-22 07:15:45 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-ge.switch.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!not-for-mail From: "Johan Forsberg" <jfo@SPAMfinansforbundet.SPAMse> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Catching Ctrl-V (Paste) event Date: Mon, 22 Jan 2001 16:26:51 +0100 Organization: Another Netscape Collabra Server User Lines: 14 Message-ID: <94hinn$oeh11@bornews.inprise.com> References: <3a65c91b_1@dnews> <MPG.14d03421dbd0503989eb3@forums.borland.com> <3a66bf3f$1_2@dnews> NNTP-Posting-Host: 193.12.51.113 Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700