I tried the Nalandial idea, but no luck ... I canβt intercept these events, but it made me move in the right direction. I worked a lot on this, then I found that the solution was much simpler than I did. I just needed to extend the dataGrid class and override two functions (mouseDownHandler and mouseClickHandler) by adding ctrlKey = true , and then calling the rest of the functions perfectly. If you want to implement it, enter the code:
package com{ import flash.events.MouseEvent; import mx.controls.DataGrid; public class ForceCtrlDataGrid extends DataGrid{ public function ForceCtrlDataGrid(){ super(); } override protected function mouseClickHandler(event:MouseEvent):void{ event.ctrlKey = true; super.mouseClickHandler(event); } override protected function mouseDownHandler(event:MouseEvent):void{ event.ctrlKey = true; super.mouseDownHandler(event); } } }
source share