Christophe,
It requires a listener for the Keyboard Event & response handler:
this.addEventListener(KeyboardEvent.KEY_DOWN,
enterKeyDownHandler);
Then in the handler, you have to test for the Enter ("Return") key:
private function enterKeyDownHandler(event:KeyboardEvent):void {
if (event.charCode == 13) {
//Do what the button would do...
}
}
Hope that helps!
Lori D. Smith :-)
<mailto:[email protected]> [email protected]

