NVDA’s system caret does not change position when keyboard focus is moved via JS

17 views
Skip to first unread message

Chiara De Martin

unread,
Jun 22, 2026, 4:51:30 AM (5 days ago) Jun 22
to NVDA Screen Reader Discussion

Hi everyone, I’m writing to get some feedback on an issue related to focus movement within a web app.


I’m conducting tests with NVDA to evaluate the accessibility of a digital reading app. The app includes a button that allows users to switch between the fixed-layout version and the reflowable-layout version of the text, without changing the web page’s URL.


Keyboard focus is moved to the reflowable text container using JavaScript. NVDA’s system caret does not change position and remains in the same area of the page where the button was located, even though the page content has changed. From my perspective, this can be quite disorienting for blind users who use a screen reader.


I would expect the cursor to automatically follow the movement of the keyboard focus—as happens when a modal dialog box opens.


Any thoughts on this?


jacob kruger

unread,
Jun 22, 2026, 5:18:05 AM (5 days ago) Jun 22
to nvda-...@nvaccess.org

First step might be to double-check settings in the review cursor category, and see if they make any changes/difference.


Jacob Kruger
"Resistance is futile...acceptance is versatile..."


--
***
Please note: the NVDA project has a Citizen and Contributor Code of Conduct.
NV Access expects that all community members will read and abide by the rules set out in this document while participating in this group.
https://github.com/nvaccess/nvda/blob/master/CODE_OF_CONDUCT.md
 
You can contact the group owners and moderators via nvda-user...@nvaccess.org.
---
You received this message because you are subscribed to the Google Groups "NVDA Screen Reader Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nvda-users+...@nvaccess.org.
To view this discussion visit https://groups.google.com/a/nvaccess.org/d/msgid/nvda-users/f21b4e10-ae59-4f56-aadd-90de6cd28dc9n%40nvaccess.org.

Andrew Downie

unread,
Jun 23, 2026, 7:28:28 PM (4 days ago) Jun 23
to nvda-...@nvaccess.org
Hi Chiara
You mentioned that NVDA goes to a modal dialog when the modal is launched.  That is only true if the person who wrote the modal puts focus on it.  You must have been lucky, as I have encountered plenty where that does not happen.  I suspect that, in the example you are testing, the JS does not include an instruction to put focus where it needs to be.  For demonstration purposes, I have written modal dialogs where focus goes to the modal when launched and where it does not.  The other thing to check for in your reflow example is whether focus is appropriately shifted when switching back to the fixed layout and my guess is that it doesn't.  Back to modal dialogs, it is also important that, when dismissed, focus returns to the button that launched it.  As a bytheway, creating accessible modal dialogs has become a great deal easier with the advent of the dialog element.


Andrew


Reply all
Reply to author
Forward
0 new messages