Double click on an element from the palette tool

Hey team,

I have a requirement in order to double click on an element from the palette tool to add it on the canvas (e.g: start event, end events…).
any clues?

thank you