[Flashcoders] Why doesn't Enter key work on focused button?

2009-12-10 Thread Alan Neilsen
I found the following code (in a forum) which makes my Tab order work the way I want, but I thought when a button had focus (yellow box around it and showing rollover state), the Enter key would then execute the code on that button (as if it were clicked), but this does not happen. The Enter

Re: [Flashcoders] Why doesn't Enter key work on focused button?

2009-12-10 Thread Karl DeSaulniers
Yes you need to add a listener that listens for the Enter key to be pressed and then you have it execute your code. Karl On Dec 10, 2009, at 4:28 PM, Alan Neilsen wrote: I found the following code (in a forum) which makes my Tab order work the way I want, but I thought when a button had

Re: [Flashcoders] Why doesn't Enter key work on focused button?

2009-12-10 Thread Karl DeSaulniers
You may need to change your function fnClick to be just an Event paramiter and not specifically a MouseEvent. JAT Karl On Dec 10, 2009, at 4:41 PM, Karl DeSaulniers wrote: Yes you need to add a listener that listens for the Enter key to be pressed and then you have it execute your code.