Firefox | Repeatedly used accesskey, display:none style on first

For https://bugzilla.mozilla.org/show_bug.cgi?id=1125813 In Firefox (tested in FF36) if same accesskey set for multiple fields and the first is styled "display: none;" then entering the access key combination fails to skip to a visible field that specifies this accesskey.

by John Murray

HTML

<body>
    <form name="frmMain">Test access keys (Alt+key on IE and Chrome, Shift+Alt+key on Firefox).
        <br>
        <br>In Firefox (tested in FF36) if same accesskey set for multiple fields and the first is styled "display: none;" then entering the access key combination fails to skip to a visible field that specifies this accesskey.
        <hr>
        <table>
            <tbody>
                <tr>
                    <td>
                        Click into this field first, then press the Z access key combination
                    </td>
                    <td>
                        <input type="text" id="fTop">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="fZ1"><u>Z</u> on display:none field</label>
                    </td>
                    <td>
                        <input type="text" id="fZ1" accesskey="Z" style="display: none;">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="fZ2"><u>Z</u> on second field</label>
                    </td>
                    <td>
                        <input type="text" id="fZ2" accesskey="Z">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="fZ3"><u>Z</u> on third field</label>
                    </td>
                    <td>
                        <input type="text" id="fZ3" accesskey="Z">
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>