<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 2/26/14 11:05 PM, Thomi Richards
wrote:<br>
</div>
<blockquote
cite="mid:CAFkWetnWS3Z9cJ0zgMaE0Be1ee8+m_qN190K0Ca2ec2fqePurw@mail.gmail.com"
type="cite">
<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 () {
$(e).click();
});</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>
</blockquote>
<br>
Thomi, I don't see this issue on Mac 10.8 or on Precise in either
Firefox or Chrome.<br>
<br>
--Ned.<br>
<blockquote
cite="mid:CAFkWetnWS3Z9cJ0zgMaE0Be1ee8+m_qN190K0Ca2ec2fqePurw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div><br>
</div>
<div>Cheers,<br>
</div>
<div>-- <br>
<div dir="ltr">
<div>Thomi Richards<br>
</div>
<a moz-do-not-send="true"
href="mailto:thomi.richards@canonical.com"
target="_blank">thomi.richards@canonical.com</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
testing-in-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a>
<a class="moz-txt-link-freetext" href="http://lists.idyll.org/listinfo/testing-in-python">http://lists.idyll.org/listinfo/testing-in-python</a>
</pre>
</blockquote>
<br>
</body>
</html>