title: Detect Whether an Event is Triggered by User and not programmatically
body: <p>Well this question has been asked before but in context of jQuery. In <strong>jQuery</strong> we can check it by <strong>originalEvent property</strong> of event Object (<a href="https://stackoverflow.com/questions/6692031/check-if-event-is-triggered-by-a-human">link</a>) which tells whether its a <strong>manual or programmed event</strong>.</p>
  
  <p>In my case I am <strong>using</strong> <strong>Javascript Event listeners and triggers</strong>. Can we <strong>differentiate between the two kind of events</strong> <strong>(programmed and manual)</strong> in this case?</p>
  
  <p>If not then <strong>any workarounds?</strong></p>
  
  <p>My Listeners:</p>
  
  <pre><code>   function setUpListeners(){
         _cellViewWrapper.addEventListener('mousedown',mouseDownHandler,false);
         _cellViewWrapper.addEventListener('mouseover',mouseEnter,false);
         _cellViewWrapper.addEventListener('blur',blurHandler,true);
         _cellViewWrapper.addEventListener('focus',focusEventHandler,true);
     }`
  </code></pre>
  
  <p>Trigger use Cases:</p>
  
  <ol>
  <li><pre><code>if(!IE_FLAG) hidePicker();
             //if browser is internet explorer
             else{
                 //if blur is allowed then hide Picker
                 if(_ieBlurAllowed) hidePicker();
                 //if blur is not allowed -- keep focus on picker input
                //triggering the focus event here
                 else blurredElement.focus(); /
           }
  </code></pre></li>
  <li><p><code>if((inputElem !== _focussedInput)) setTimeout(function(){ inputElem.focus(); },10);</code> </p></li>
  </ol>
  
  <p>and many more...</p>