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

<*> 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/
 


Reply via email to