You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a3b8cdd
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: The Accessibility Tree - A Training Guide for Advanced Web Development/index.htm
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1963,11 +1963,11 @@ <h3>
1963
1963
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.
1964
1964
</p>
1965
1965
<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.
1967
1967
</p>
1968
1968
<p>
1969
1969
<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.)
1971
1971
</i>
1972
1972
</p>
1973
1973
<p>
@@ -2015,7 +2015,7 @@ <h3>
2015
2015
<ul><li>
2016
2016
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.
2017
2017
</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.
2019
2019
</li></ul>
2020
2020
<p>
2021
2021
For native active elements such as standard links and buttons, this usually causes no problems.
@@ -2068,7 +2068,7 @@ <h3>
2068
2068
<ul><li>
2069
2069
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.
2070
2070
</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.
2072
2072
</li></ul>
2073
2073
<p>
2074
2074
When NVDA is in Browse Mode, it reads all offscreen content, even if other content is overlayed across it.
0 commit comments