title: Does focus trigger a keyup event?
body: <p>I made 3 input boxes for time input (hh, mm, ss)
  When the user type in 2 digits in hh, it will automatically focus the next (mm) field. Same for mm and ss.</p>
  
  <p>I am using the 'keyup' event to bind my input boxes. However the behaviour is strange:</p>
  
  <p>If I type 2 digits SLOWLY, it works.
  If I type FASTER, it will jump twice.</p>
  
  <p>I suspect the 'focus' event triggers the keyup event, and I dont know how to deal with it. I have tried to .preventDefault on the focus event. But no luck.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>$('#hh').on('keyup', function (e) {
      var hh = $('#hh').val().toString();
      if (hh.length &gt;= 2) {
          $('#mm').focus();
      }
  });
  
  $('#mm').on('keyup', function (e) {
      var mm = $('#mm').val().toString();
      if (mm.length &gt;= 2) {
          $('#ss').focus();
      }
  });
  </code></pre>
  
  <p>Here is a demo:</p>
  
  <p><a href="http://jsfiddle.net/ch3ksuwa/" rel="nofollow">jsfiddle</a> (<a href="http://jsfiddle.net/ch3ksuwa" rel="nofollow">http://jsfiddle.net/ch3ksuwa</a>)</p>
  
  <p>To reproduce: type in 2 digits quickly in hh field, and it will jump to ss instead of mm</p>
  
  <p>I tried on Chrome and Firefox, same issue</p>