Alt-click in grid?

Greetings,

Is seems that grid (in my case a tree-grid) already handles shift-click and ctrl-click for it’s select events. I’d like to capture alt-click and attach a function to it. Is this possible?

Thank you.

Inside onRowSelect event you will not have info about state of keys. It possible to attach native html event , but in such case you will lost info about position in grid.
You can combine both approaches to have the necessary use-case


dhtmlxEvent(mygrid.obj,“click”,function(e){
mygrid.alt_flag = e.altKey; //save state of alt key
})
mygrid.attachEvent(“onRowSelect”,function(id,ind){
if (this.alt_flag) do_the_deeds(); //custom reaction on alt click
})