Article View: borland.public.jbuilder.java.language
Article #17657Alt-Enter
From: Hadi Abdo
Date: Thu, 15 Oct 1998 00:00
Date: Thu, 15 Oct 1998 00:00
16 lines
1059 bytes
1059 bytes
Hello,
Have anyone tried to listen to Alt-Enter key combination. I have
tried this code:
if (e.getKeyCode() == KeyEvent.VK_ENTER && e.isAltDown())
I tried that in the keyPressed method, I traced it and deduced that when
I press ALT the method is called but when I press Enter, no response.
When I tried it in the keyReleased method, when I release Enter the
getKeyCode() returned the code for the ALT key !!
Note: I tried the Shift-Enter and worked fine with no problem.
Any Ideas ?
--
HADI ABDO
Technical Details
Message-ID:
<3626181A.34F4805C@dm.net.lb>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,6d8d3766b8c5d0e1,start X-Google-Attributes: gidf74b3,public From: Hadi Abdo <skfdid@dm.net.lb> Subject: Alt-Enter Date: 1998/10/15 Message-ID: <3626181A.34F4805C@dm.net.lb> X-Deja-AN: 401367681 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: skfdid@dm.net.lb Newsgroups: borland.public.jbuilder.java.language