title: Differentiate between onFocus triggered by mouse-click and by tab-key
body: <p>How can one differentiate between an onFocus-event caused by a <kbd>Tab</kbd>-press and one by mouseclick? My goal is to select all of the text in a field when it's tabbed to, but not when it's clicked.</p>