Hi Alex, I did a trace to confirm that I'am not in a loop. I have set "isCellEditor = true" but still the disposeEditor works only when i select some value in comboBox. It is puzzling since disposeEditor should work the same way every time it is invoked. Attached is the code for ComboBoxCellRenderer.
Pradeep On 6/29/05, alex_harui <[EMAIL PROTECTED]> wrote: > I thought the browser always ate ESC. > > I'm not clear what you mean by "no visible effect". If you have set > isCellEditor=true, then disposeEditor doesn't really do much. You are > responsible for restoring the visuals. > > It is also possible that you are in a loop where you dispose the > editor and the DG puts one back up because it gets focus when the > editor is disposed. Using doLater might help there > > > --- In [email protected], Pradeep Chaudhary > > <[EMAIL PROTECTED]> wrote: > > I want to rollback changes made through custom cell renderer when > user > > presses Escape key. But keyDown never fires on escape key; keyUp > event > > captures Escape key but it not consistent in its behavior. > > > > Following is code:- > > function keyUp(event):Void{ > > //Key.ESCAPE does not works so check for Ascii code. > > if(Key.getAscii() == 27){ > > listOwner.disposeEditor(); > > } > > } > > > > The above code works in Custom ComboBoxCellRenderer only if i select > > some value in comboBox. If i try to escape out without changing any > > value the above code executes but there is no visible effect. > > > > The same piece does not works in custom text cell renderer in any > case. > > > > Pradeep > > > > > -- > Flexcoders Mailing List > FAQ: > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > > ________________________________ > YAHOO! GROUPS LINKS > > > Visit your group "flexcoders" on the web. > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > ________________________________ > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
ComboBoxCellRenderer.as
Description: Binary data

