title: Avoid mouseup event when selecting a file from dialog when double clicking
body: <p>I have a <code>input[type="file"]</code> in my web page and when the file dialog is open and I select a file with double clicking the <code>mouseup</code> event is triggered. But if I select the file and then click the <em>Open</em> button to select there is no extra event.</p>
  
  <p>This behavior is specific to Firefox, I tested in Chrome, IE and Opera and there is not extra <code>mouseup</code> event. Also there is no <code>mousedown</code> event, so the log will have two sequential <code>mouseup</code> events. </p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="file" /&gt;
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>jQuery(document).mouseup(function(e) {
      //...
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/984a6ex9/1/" rel="nofollow">Here</a> is a fiddle where you can see this behavior. To see it in action <strong>make sure</strong> that the file dialog is over the <strong>Result</strong> box of the jsfiddle page. </p>
  
  <p>How can I avoid this? Is this a browser bug? Googling didn't come up with any useful results. </p>
  
  <p><strong>Edit</strong>: This issue appears on my Firefox (version 32.0.1 on Win7 64bit) but not on Firefox 32.0 in Linux. </p>