I need to modify the behaviour of an editable datagrid to this:
-Single-click on a row, doesn't make the cell show a text input field (only selects the row)
-Double-click on a row, doesn't make the cell show a text input field either
-Clicking a cell in an already selected row, shows a text input field ready to be edited. I belive this is how for example iTunes works.
You can call preventDefault on ITEM_EDIT_BEGINNING to cancel editing. I
suppose if you track the current selectedIndex on mouseDown and see if it
changes by the time you get to ITEM_EDIT_BEGINNING you could do that.
I ended up using the ListEvent.CHANGE to tell if the selectedIndex index had changed,
and then the preventDefault on ITEM_EDIT_BEGINNING if it was.