title: input type file in Opera
body: <p>I have tried to fire onkeydown, onkeypress and onkeyup events on file input(e.g. when the element is on focus and a key is pressed the events are not fired), but they doesn't work in Opera. Firing 'click' with jQuery , doesn't work too (e.g. $('#myFileinput').Click() or $('#myFileinput').trigger('click')).</p>
  
  <p>Is there a way to trigger these events in Opera ?</p>
  
  <p>Here is my code:</p>
  
  <pre><code> &lt;input type="file" class="foo" /&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      debugger;
      window.onload = onPageLoad;
      function onPageLoad() {
  
          var input = $(".foo");
          debugger;
          input.keydown(function () {
              //doesn't work in Opera
              alert("keydown");
          });
  
          input.keypress(function () {
              //doesn't work in Opera
              alert("keypress");
          });
  
          input.keyup(function () {
              //doesn't work in Opera 
              alert("keyup");
          })
      }
  
      window.onkeydown = function () {
          //when the focus is on the input the code bellow doesn't fire
          alert("window key down")
  
      }
  
  &lt;/script&gt;
  </code></pre>