Mouse vs. Keyboard - Determining Click Initiator Using A jQuery Custom Event
Updated: 2012-04-26 16:29:00
When filling out online forms, I love to use my keyword as a means to both provide information as well as to navigate from form field to form field. This works great; but from time to time, an "itchy Tab finger" causes me to accidentally hit "Enter" on an inappropriate form element (such as a Cancel link). Falling victim to this problem the other day, I wondered if there was a way to determine which device - the mouse or the keyboard - triggered the "click" event. If I could, then I thought i ... ead More raquo;