Skip to content

Commit d060cda

Browse files
patrickhlaukealastckfranqueirodbjorgembgower
authored
Correct F99 - keyCode is not an attribute (#4374)
Closes #4344 --------- Co-authored-by: Alastair Campbell <ac@alastc.com> Co-authored-by: Kenneth G. Franqueiro <kfranqueiro@users.noreply.github.com> Co-authored-by: Dan Bjorge <dan@dbjorge.net> Co-authored-by: Mike Gower <mikegower@gmail.com>
1 parent fe3c324 commit d060cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

techniques/failures/F99.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h2>Description</h2>
3131
<p>The test procedure suggests asking the author (often the developer of the site) whether keyboard shortcuts are used. If that information is trusted then the procedure can be simpler than pressing all the keys.</p>
3232

3333
<p>The success criterion does not apply when single key shortcuts are only active when interface elements have the focus, for example, a <code class="language-html">select</code> element. Here, pressing a letter key is used for fast navigation within the select options.</p>
34-
<p>Viewing page scripts and searching for typical keyboard event handlers like <code class="language-javascript">document.addEventListener('keydown' ...) </code> or the presence of the <code class="language-javascript">.keycode</code> attribute
34+
<p>Viewing page scripts and searching for typical keyboard event handlers such as <code class="language-javascript">document.addEventListener('keydown' ...) </code> or the handling of keyboard-related event properties with code such as <code class="language-javascript">.key</code>, <code class="language-javascript">.code</code>, <code class="language-javascript">.charCode</code>, or <code class="language-javascript">.keyCode</code>
3535
may establish the presence of scripts that intercept keyboard shortcuts without modification keys like <kbd>ALT</kbd> or <kbd>Ctrl</kbd> being held down at the same time. As there are several ways of implementing character key events, this method is not considered reliable.</p>
3636
<p>Some browsers employ single key shortcuts with <kbd>Shift</kbd>. For example, Firefox opens a page search when pressing <kbd>Shift</kbd> + <kbd>/</kbd> and a search in page links when pressing <kbd><kbd>Shift</kbd> + <kbd>'</kbd></kbd>. In these cases, it will be necessary to press <kbd>Esc</kbd> or click an empty part of the page to remove the focus from the browser input.</p>
3737
</section>

0 commit comments

Comments
 (0)