This content has been marked as final. Show 3 replies
The only solution I can think of is to set an event listener for mouse clicks that when you click into your application, the event listener will detect this and call a function that should set focus back to your form field. Of course, this is just more work than simply clicking into the field itself.
As far as I know, Flex cannot detect if your application is currently the active application on your PC. Can anyone verify or deny this?
To solve this I have modified the html template wrapper as follows:
The problem is that the functions are not executing when focus moves to another window or returns to flex app window. If I use the onLoad or beforeUnload attributes the functions execute correctly.
Does anyone have any ideas why this is happening / not happening?