I remember the same problem - I did check for event.reason ==
DataGridEventReason.OTHER in order to prevent showing Alert window
when the editor loses focus, not on canceling via Esc.
In my case i couldn't use callLater because my Alert was actually
asking (Yes/No) and not just warning
Hope this help to solve your problem

Andrii Olefirenko

--- In [email protected], "Dmitri Girski" <[EMAIL PROTECTED]> wrote:
>
> Hi Alex and all,
> 
> I was so inspired with the last victory over my focus problem
> (http://tech.groups.yahoo.com/group/flexcoders/message/102706)
> so I just went through the list of all focus related bugs.
> 
> I've got another case of some weird behaviour regarding the loosing
> the focus.
> 
> Test case is very simple - editable DataGrid, click anywhere in the
> cell, start editing and then press ESC key - the parent component
> keyboard events handler will throw an Alert box. If you choose Yes
> (discard changes and close the window) system crashes. 
> Debugging shows that after Alert control has been closed Flex tries to
> resume editing in DataGrid - it starts again with editBegin event and
> then it crashes because system already started the removal of the
window.
> 
> The question is - what I am doing wrong? 
> 
> SWF: 
> http://mitek.id.au/flex/TestItemEditorEsc.html 
> 
> Source code:
> http://mitek.id.au/flex/TestItemEditorEsc.mxml 
> http://mitek.id.au/flex/TestItemEditor.mxml
> 
> 
> Thanks in advance!
> 
> Dmitri.
>


Reply via email to