Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is incorrect. In Safari at least, if you attach a handler to the mousedown event, your handler will fire for both ⌃-click and right click, but the two events will be different.

In the former case, you have event.button = 0, and event.ctrlKey = true. In the second case, you have event.button = 2, and event.ctrlKey = false.

What happens depends on the logic inside the handler.

On the other hand, if you attach a handler to the click event, it doesn't seem to fire for either right click or ⌃-click.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: