<div dir="ltr"><div><div><div>Hi,<br><br><br></div>I use coverage.py&#39;s HTML coverage reports a lot, and they&#39;re great, except that the keyboard shortcuts seem very broken. For example, when I&#39;m in the coverage report for a file, if I press the &#39;alt&#39; key (which I do as part of Alt+tab, for example) the browser will jump to somewhere near the top of the page. Additionally, the space key toggles highlighted lines, even though that&#39;s not mentioned as one of the shortcut keys. It seems like whatever code is responsible for matching key presses to js code is being a little too aggressive.<br>

<br></div><div>I&#39;m no JS expert, but it looks to me like pressing the &#39;alt&#39; key triggers the handler function in coverage_html.js, specifically, this code:<br><br><pre>  $(document).bind(&#39;keydown&#39;, c.substr(9), function () {<br>

                    $(e).click();<br>                });</pre><br></div><div>But the &#39;e&#39; objects class is &#39;shortkey_r&#39; or &#39;shortkey_m&#39;.<br></div>Is there any additional information I can provide to help debug this? Alternatively, is there an easy way to disable the shortcut key support? <br>
<br></div>I&#39;m on Ubuntu Trusty Tahr, and can reproduce the problem with both Firefox and Chromium. Has anyone else had this issue?<br clear="all"><div>
<div><div><div><div><br></div><div>Cheers,<br></div><div>-- <br><div dir="ltr"><div>Thomi Richards<br></div><a href="mailto:thomi.richards@canonical.com" target="_blank">thomi.richards@canonical.com</a><br></div>
</div></div></div></div></div></div>