I know it's not what you want to do for your question, but here's a way to use a click and a double easily:
If you need to select an object with a click (or save a variable for example), you can use javascript to call a function in a "href".
Then you can use the "ondblclik ()" to directly edit the registry, without clicking the edit button.
The function in the "href" is always executed, so do not test it with "alert ()", you will not get a double click, as the message window will open. It runs 2 times, then perform an action that can be a problem, but not to save or update variables.
function clickMe(c){
var link = document.getElementById('link');
link.innerHTML = "Clicked: "+c;
}
<a id="link" href="javascript:clickMe(1);void(0);" ondblclick="clickMe(2);">Click Me</a>