[ 
https://issues.apache.org/jira/browse/FLEX-14271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Mclean updated FLEX-14271:
---------------------------------

    Labels: easyfix easytest  (was: )
    
> event.ctrlKey incorrecty functioning in DataGrid
> ------------------------------------------------
>
>                 Key: FLEX-14271
>                 URL: https://issues.apache.org/jira/browse/FLEX-14271
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: DataGrid
>    Affects Versions: Adobe Flex SDK 3.0 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>            Priority: Minor
>              Labels: easyfix, easytest
>
> Steps to reproduce:
> 1. Download MXML document or run SWF file
> 2. By default I selected a last row
> 3. Press CTRL key and select other rows
> 4. Now, continue hold CTRL key and click on some selected row.
>  
>  Actual Results:
>  
> All selected rows will be unselected, except a row you clicked.
>  
>  Expected Results:
>  
>  All rows should keep old status, except a row you clicked.
>  Workaround (if any):
>  
>  Create custom component and extend DataGrid.
> Override two functions:
> <code>
> protected var bCtrlKey:Boolean;
> override protected function keyDownHandler(event:KeyboardEvent):void{
>    bCtrlKey = event.ctrlKey;
> }
>               
> override public function set selectedIndex(value:int):void{
>     if(bCtrlKey)
>        _selectedIndex = value;
>      else
>         super.selectedIndex = value;
>  }
> </code>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to