In general, I don't think you can count on the browser passing control
keys to Flash.

It might be better to just have a Select All Rows button near your
DataGrid. That's certainly more discoverable, and you don't have to move
your hands from mouse to keyboard.

- Gordon

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of r0main
Sent: Wednesday, June 29, 2005 6:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Ctrl + A in a datagrid ?

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 flexcoders@yahoogroups.com, "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



 




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