The following alert popup allows me to hit the enter key to close it: 

Alert.show("Exit?", "Question", Alert.YES|Alert.NO,this, alertHandler,null, 
Alert.YES); 
but the following alert does not (nothing happens when I hit the enter key): 

Alert.show("Invalid input.","Error",Alert.OK,this,alertHandler,null,Alert.OK); 

In both cases, the last parameter (entered in parenthesis above) creates a blue 
highlight over the button to indicate to the user that key will be chosen by 
default. This is good, so there must be something else going wrong. 

The first alert above is executed inside a view from a spark state, whereas the 
second alert above is executed from inside a spark GridItemEditor.mxml (so 
maybe the "this" parameter is messing it up?) that is used in a different spark 
state. 

I'm not too familiar with manipulating things in an renderer like this -- any 
idea how to get that alert closed by hitting the Enter key? Is it just a simple 
replacement of "this" with something else? 

Reply via email to