refactor right and double click to use native events