Reputation: 20865
Is there a simple solution without jquery, inside HTML-tags to catch a CTRL+Mouseclick?
It could look like this:
<a href="#" onclick="if(ctrl_is_pressed()) alert('CTRL+Mouseclick');">X</a>
Upvotes: 0
Views: 2943
Reputation: 227310
In the event object, there's a ctrlKey property.
event
ctrlKey
<a href="#" onclick="if(event.ctrlKey) alert('CTRL+Mouseclick');">X</a>
Upvotes: 7