bug: when selecting text in a cell after hitting f2, NVDA does not read what is selected when shift+arrows are used.
Steps to reproduce:
- launch nvda
- launch excel
- open a workbook with filled in text or just fill in the current workbook.
- hit f2 to access the formula editor
- use control+arrows to review the text
- do the same with shift to select text.
Actual behavior:
I don't hear any text spoken when using shift and arrow keys.
Expected behavior:
I should hear text spoken when I use my selectrion keys similar to chrome, outlook, etc. this includes shift home and end, control shift home and end as well.
NVDA logs, crash dumps and other attachments:
System configuration
NVDA installed/portable/running from source:
installed
NVDA version:
23.x
Windows version:
Windows 11 22H2 (AMD64) build 22621.2715
Name and version of other software in use when reproducing the issue:
microsoft 2016 m365 I'm usign excel from said office suite.
Other information about your system:
Other questions
Does the issue still occur after restarting your computer?
yes.
Have you tried any other versions of NVDA? If so, please report their behaviors.
No, I can regress this to when I noticed this in july 2023.
If NVDA add-ons are disabled, is your problem still occurring?
yes
Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?
yes
another comment. We have an active thread explaining what is going on and a workaround. I want to see if this is also a microsoft issue. Thanks.
(Updated original description / title just to fix a couple of typos which may impact easy reading of the text).
TL;DR: I can repro with Excel's "Allow editing directly in cells" enabled, and NVDA's use UIA in Excel disabled.
I tested this with the following setup: NVDA 2023.3 Windows 11 (64-bit) Version: 22H2, Build: 22621.2715 Office 365 (64-bit) Version: 16.0.17029.20028
What I found was: With "Allow editing directly in cells" ENABLED in Excel's advanced options and NVDA's "Use UI Automation to access MS Excel spreadsheet controls when available" also enabled:
-
When I press F2 to edit a cell, then use SHIFT+ARROWS to select text, NVDA reads each letter as it is selected "T selected, H selected, E selected" if I select the word THE one letter at a time for instance).
-
If I disable NVDA's Use UIA in Excel option, letters are NOT read as I select them.
-
Leaving NVDA's Use UIA in Excel option disabled and disabling "Allow editing directly in cells" in Excel, NVDA reads letters as they are selected.
-
If I then enable Use UIA in Excel in NVDA, letters are read as they are selected.
So, in short, the only situation where letters are NOT read as they are selected for me is with NVDA's Use UIA in Excel disabled AND Excel's allow editing directly in cells enabled.
This issue was originally discussed in the M365-Accessibility group here: https://groups.io/g/M365-Accessibility/message/8065
Thanks. Sorry about the typos. I saw those when it was too late. What are next steps going from here?
Sarah,
Sean Budd marked this as triaged, priority two, app/microsoft-office about a half an hour before your message. Since I had not commented before now, I hadn't seen anything up to now, but I thought you would have received an email message regarding that status change since you were the issue originator. It also shows on the GitHub page, which is where I'm typing from, but I'm not 100% positive whether you get an email when such designations are made, but I could have sworn I did in the past.
Thanks. No I did not. I normally get an update when things are closed. I will keep an eye on this. Thanks for the update.
@seanbudd this is very related to #14122. I think NVDA cannot fetch selections and deletions in the edit field in Excel when editing directly in cells is enabled. Should we report this to Microsoft? Or is there anything NVDA can do ybout it?
Reporting it to Microsoft may be worthwhile, either of us would need to do a technical investigation before determining fault. MS generally has more resources
That has already been dame. I think someone did solve this with excel and nvda, something in excel had to be unchecked which did not make sense. I think it was “directly edit in sells” which had to be unchecked as if that was checked excel would not read what was selected. If this is the case, that seems still like a bug somewhere, as that fix although works seems counter intuitive.