2 Replies Latest reply on Feb 18, 2014 9:07 AM by andrewtom

    How to prevent focusing the last element on application focus?


      I have the following scenario:

      1. Focus an element(RichEditableText) by clicking it
      2. On a certain event, I set stage.focus = null thus the element loses focus
      3. Minimize the application and then reopen it
      4. The last element that was focused, gains focus back even though at minimization there was no focused element


      Why does it happen and how can I prevent it?


      I know a solution is to set the focusEnable to false but this is not what I want.