-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next/Previous Landmark should start from current focus #395
Comments
Thanks for this. I agree it should behave in the way you describe, as it does with screen readers. I'm wondering: what happens if the user scrolls the page without moving the focus? My feeling is that someone who is browsing visually, but happens to be using the keyboard, would like the point of regard [what a neat expression :-)] to follow the scrolling, so it'd behave like the virtual cursor. Whilst this feels like a safe assumption, but I wonder if there are any keyboard-only power users I could ask first. Further, should the point of regard be taken as the centre of the screen, or somewhere nearer the top? The virtual cursor has the advantage of being precise. From a technical/performance standpoint, this is an interesting problem to solve. Here are some thoughts...
Feels like it's best to address the focus issue first and create a separate issue for the scroll one later if the need is felt. |
My feeling precisely when reading through your comment. Definitely go with the easy (focus) fix first, and decide later whether the other (scroll) is needed. Glad you ended up with the same conclusion! 😄 |
…ites (#408) * Cache sites so that tests are more consistent over a short timespan at least. * Add tests for navigation from the focused element (both forward and back) in support of #395. * Numerous code clean-ups/improvements. * Store totals/overall averages in the results (not sure how good of an idea this is).
I've been testing some code for a little while, both in practice and via some improvements I made to the profiling script, and found that...
I do think this feature is necessary, so I think the slowdown is acceptable. Thanks for the suggestion—it now seems so obvious this should've been how it behaved all along :-). That being said, it seems odd that this hasn't come up before. I've heard from some keyboard-centric (if not keyboard-only) users of the extension, and developers tend to like their keyboards too, but it does make me think maybe the extension is being used more by developers to check their sites than people visiting sites generally. Along both of those lines, I've been working on promoting the extension a bit more, and now the profiling is improving, it'll be possible to work on more dev-centric features... |
If there is a focused element in the document, navigate from its position when moving forward/backward between landmarks. A test page for manual testing was added, and improvements to profiling allowed some good measurements. Was quite fun experimenting with more effective ways to do things. Resolves #395
Steps to see this issue:
At this point, I expected to go to "the Next landmark from where I am now", which would be the "Sign up for our Newsletter" Complimentary landmark.
Instead, I moved to the Main landmark, which is essentially moving backwards in the document, which is unexpected.
I don't think the user is expecting to go to "the Next landmark from where I was the last time I used Landmark navigation".
I'm pretty sure they will be expecting to move forward from the landmark that the currently-focused item is in.
Screen readers move to the next (and previous) landmark based on the current point of regard (i.e. focus or virtual cursor).
This can be seen with D and Shift+D in NVDA, using Tab to move focus, or Up/Down arrow to move the reading cursor;
or with R and Shift+R in JAWS.
The text was updated successfully, but these errors were encountered: