open editor in datatable on mousedown event

Hi webix team,

I’m trying to invoke an text editor in the datatable view on mousedown event. In the final version the editor shall open after a certain wait time or cancelled if mouseup occurs earlier using setTimeout and clearTimeout.

So I just tried first the approach to open the editor on mouse down. But it doesn’t work as expected. It opens once and closes immediately on mouseup. All further mousedown actions showing no reaction. See the code here: https://snippet.webix.com/dlnn6d5t

What I’m doing wrong?

Hi, @gert,
try using onItemClick handler instead
https://snippet.webix.com/gzb7b8sw

or use editaction:"click" (which is by default) if you do not need any additional checking.

I know all these and apply it too in my app. I just want to have a further way to react on mouse clicks on a cell. Example: click => select row, dblClick => download document, delayed mousedown => open editor to change the content.