Hello ppl.
Im making a small window that should close when I press escape (to
leave without do anything more) or enter (reading several characters
from a magnetic card). My listener gets all characters but escape. Any
idea?. My listener's code is:
public void onKeyDown(Widget sender, char keyCode, int modifiers)
{}
public void onKeyPress(Widget sender, char keyCode, int modifiers)
{
Log.debug("pressed: " + keyCode);
if (keyCode == KEY_ENTER) {
parseCard(...);
}
}
else if (keyCode == KEY_ESCAPE) {
Log.debug("I never see this trace");
this.hide();
}
}
public void onKeyUp(Widget sender, char keyCode, int modifiers) {}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---