As usual, too fast to ask... I was testing my app in Eclipse (Internal
Web Browser).. Seems it doesn't forward some Key to the flex
application... Works perfectly in FireFox or IE...

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>
<mx:Panel>
<mx:DataGrid keyDown="getCtrlA('d1')"></mx:DataGrid>
<mx:DataGrid keyDown="getCtrlA('d2')"></mx:DataGrid>
</mx:Panel>
<mx:Script>
        <![CDATA[
                private function getCtrlA(name:String) {
                        if (Key.isDown(Key.CONTROL) && Key.getCode() == 65) {
                      mx.core.Application.alert("Ctrl + a "+name);
                   }
                }
        ]]>
</mx:Script>
</mx:Application>

Ciao, r0main

--- In [email protected], "r0main" <[EMAIL PROTECTED]> wrote:
> Hello,
> is there a way to make a DataGrid "Keyboard-aware" of the event Ctrl+A
> to select all rows ?
> 
> Thanks, r0main




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