<div dir="ltr"><div><div><div>Hi,<br><br><br></div>I use coverage.py's HTML coverage reports a lot, and they're great, except that the keyboard shortcuts seem very broken. For example, when I'm in the coverage report for a file, if I press the 'alt' 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'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'm no JS expert, but it looks to me like pressing the 'alt' key triggers the handler function in coverage_html.js, specifically, this code:<br><br><pre> $(document).bind('keydown', c.substr(9), function () {<br>
$(e).click();<br> });</pre><br></div><div>But the 'e' objects class is 'shortkey_r' or 'shortkey_m'.<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'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>