I have created my own DataGridHeader class – by extending the default DataGridHeader.
In the contructor of this class I have added an event listener to listen to column clicks with the cntrl key pressed.
addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
It appears though that the keyDownHandler is not being called at all….bizarre…it works just fine when I add the same event listener to the DataGrid class but not the DataGridHeader class.
Am I missing something here?
Thanks
Mark
DataGridHeaderhas the following method which you can override:Then you can refer to the
MouseEventdocumentation to foundctrlKeyflag there.I think this information is enough to solve your problem 🙂