flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-14271) event.ctrlKey incorrecty functioning in DataGrid
Date Wed, 01 May 2013 02:13:13 GMT

     [ 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

Mime
View raw message