this is the code for the event;

@Override
public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
 if(DOM.eventGetType(event) == Event.ONKEYPRESS){
if(event.getKeyCode() == KeyCodes.KEY_ESCAPE){
 hide();
}else if(event.getKeyCode() == KeyCodes.KEY_ENTER){
if(okButton.isVisible())
 handleOK();
else if(searchButton.isVisible())
handleSearch();
 }
 }
 }

On Wed, Jan 20, 2010 at 9:57 AM, Anoop John <[email protected]> wrote:

> can you please provide your code
>
> On Jan 20, 12:13 pm, muhannad nasser <[email protected]> wrote:
> > hi all;
> >
> > i am using keyPressed event to catch the ESC button..... to close an open
> > popup...... it works fine in the hosted mode and IE7.... but it does not
> > work on FireFox......
> >
> > any ideas please
> >
> > --
> > ~~~With Regards~~~
> > Muhannad Dar-Nasser
> > ~~Computer Systems Engineering~~
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>


-- 
~~~With Regards~~~
Muhannad Dar-Nasser
~~Computer Systems Engineering~~
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to