title: Gmail seems to capture all keyboard events. Any way to go around that?
body: <p>I'm writing a Chrome extension that launches a script with a keyboard shortcut. It works fine on most pages but I realized that on Gmail it doesn't: it seems that all keyboard events are captured by Gmail and are not bubbled up to my function.</p>
  <p>I have a content script (in Chrome extension this is added to any page you want) that has (simplified of course):</p>
  <pre><code>document.body.addEventListener('keypress', myFunction, true);
  function myFunction(event) {
      console.log(&quot;yay, Gmail didn't let me down!&quot;);
  }
  </code></pre>
  <p>But actually, Gmail does let me down. I know that the script <em>is</em> loaded. I tried different variations of <code>window.addEventListener</code> and other event types to no avail.</p>
  <p>Does anybody know of a way to bypass this?
  I tried to see if GreaseMonkey script could do it, that brought me here: <a href="http://code.google.com/p/gmail-greasemonkey/" rel="nofollow noreferrer">http://code.google.com/p/gmail-greasemonkey/</a> but that didn't help me.</p>