Could not capture enter key event in awt with netscape 4.7
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   chander_chaudhary
Posted On:   Friday, May 3, 2002 05:14 AM

Hi
I am capturing the enter key on a awt Button in action performed ,The code is working fine in IE 5.5 but not in netscape 5.5 .Is there any clue how could we tackle this .
with regards...

Re: Could not capture enter key event in awt with netscape 4.7

Posted By:   srdjan_savkovicc  
Posted On:   Wednesday, May 29, 2002 01:49 PM

try the following:

instead of void actionPerformed() method use

boolean actionEvent(Event evt) that returns boolean value.
then instead of if(evt.id==Event.MOUSE_DOWN) use
if(evt.id==1001). I think that 1001 is code for MOUSE_DOWN.
you can find all that integer codes in class Event.java in scc dir. of JDK.

thaat should work in netscape. try something else method (actionPerformed()), but use integer values to compare with event.
About | Sitemap | Contact