Skip to content

Commit a3b8cdd

Browse files
committed
Removed the deprecated onKeyPress handler reference from the guide documentation
1 parent 2dc87f4 commit a3b8cdd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • The Accessibility Tree - A Training Guide for Advanced Web Development

‎The Accessibility Tree - A Training Guide for Advanced Web Development/index.htm‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,11 +1963,11 @@ <h3>
19631963
A native active element such as a standard link or button is already keyboard accessible, and will automatically process the onClick handler when attached, even when Enter is pressed using the keyboard.
19641964
</p>
19651965
<p>
1966-
However, a simulated active element such as a DIV or SPAN will not trigger an onClick handler when Enter is pressed using the keyboard. Instead, tabindex must be used to manage focus movement, and a redundant onKeyUp or onKeyPress must be added in addition to the onClick handler, in order to ensure accessibility for both sighted mouse users and keyboard only users.
1966+
However, a simulated active element such as a DIV or SPAN will not trigger an onClick handler when Enter is pressed using the keyboard. Instead, tabindex must be used to manage focus movement, and a redundant onKeyDown or onKeyUp must be added in addition to the onClick handler, in order to ensure accessibility for both sighted mouse users and keyboard only users.
19671967
</p>
19681968
<p>
19691969
<i>
1970-
(The reason why onKeyUp is preferable to onKeyDown in such cases, is because onKeyDown will fire repeatedly when a key is held down, but onKeyUp will not.)
1970+
(Note: onKeyDown will fire repeatedly when a key is held down, but onKeyUp will not.)
19711971
</i>
19721972
</p>
19731973
<p>
@@ -2015,7 +2015,7 @@ <h3>
20152015
<ul><li>
20162016
When JAWS is in Virtual Cursor Mode for navigating web content, JAWS will activate the onClick event when the Enter key is pressed on an element.
20172017
</li><li>
2018-
When JAWS is in Applications/Forms Mode however, JAWS will activate the onKeyDown/onKeyPress/onKeyUp events instead, and not the onClick.
2018+
When JAWS is in Applications/Forms Mode however, JAWS will activate the onKeyDown/onKeyUp events instead, and not the onClick.
20192019
</li></ul>
20202020
<p>
20212021
For native active elements such as standard links and buttons, this usually causes no problems.
@@ -2068,7 +2068,7 @@ <h3>
20682068
<ul><li>
20692069
When NVDA is in Browse Mode for navigating web content, NVDA will activate the onClick event when the Enter key is pressed on an element.
20702070
</li><li>
2071-
When NVDA is in Applications Mode however, NVDA will activate the onKeyDown/onKeyPress/onKeyUp events instead, and not the onClick.
2071+
When NVDA is in Applications Mode however, NVDA will activate the onKeyDown/onKeyUp events instead, and not the onClick.
20722072
</li></ul>
20732073
<p>
20742074
When NVDA is in Browse Mode, it reads all offscreen content, even if other content is overlayed across it.

0 commit comments

Comments
 (0)