title: Can't capture first onkeypress event in javascript/jQuery when contenteditable=true
body: <p>Here is the code:</p>
  
  <pre><code>&lt;div onclick="this.setAttribute('contenteditable', 'true');"
      onkeypress="console.info(event.keyCode)"&gt;foo&lt;/div&gt;
  </code></pre>
  
  <p>This is how I expected to work: user clicks a <code>div</code>, it is editable, then I may intercept some key events to run customized handling with Enter, Tab, Arrow keys.</p>
  
  <p>The problem is, you <strong>can</strong> edit the <code>div</code> after click, but you <strong>can not</strong> get the first key press event from <code>onkeypress</code>. You can only get a keypress event if you press <strong>twice</strong>.</p>
  
  <p>I am using Chrome Dev v12 on Win7 32 bit. Please help</p>