Repository navigation
Commit f99ce7a
authored
Keep the keyboard focus in the deck when its revealjs slide is left (#15089)
Since #15010 a slide that is left becomes inert, and when it held the
keyboard focus, for example on a link the reader tabbed to, the browser
dropped the focus to the body. Screen readers pass the arrow keys on to
reveal.js only while the focus is in the deck, so after one slide change
NVDA and JAWS went back to browse mode until Tab was pressed again.
updateInertSlides() now moves the focus to the deck, made focusable with
tabindex="-1", before it makes the slide that has the focus inert. A
focus outside the slide being left is not touched, and slidechanged
handlers that focus something on the new slide still can, since this
runs first, in the capture phase.
Fixes #15078
Co-authored-by: JooYoung Seo <19754711+jooyoungseo@users.noreply.github.com>1 parent ce3ea0d commit f99ce7a
2 files changed
Lines changed: 52 additions & 6 deletions
File tree
- src/resources/formats/revealjs/plugins/support
- tests/integration/playwright/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
| 364 | + | |
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
372 | 379 | | |
373 | 380 | | |
374 | 381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
201 | 240 | | |
202 | 241 | | |
203 | 242 | | |
| |||
0 commit comments