Skip to content
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

Object explorer not working correctly in Visual Studio 2017 (v15.3 and up) #9311

francipvb opened this issue Feb 22, 2019 · 3 comments · Fixed by #9415

Object explorer not working correctly in Visual Studio 2017 (v15.3 and up) #9311

francipvb opened this issue Feb 22, 2019 · 3 comments · Fixed by #9415


Copy link

Steps to reproduce:

  1. Open any type of project with object explorer available, such .NET.
  2. Open object explorer with ALT+CTRL+j.
  3. Ensure you're in the objects tree and select the first expandable item.
  4. Expand it by pressing right arrow.
  5. Enter into it with right or down arrow.
  6. Contract it by pressing left arrow twice.
  7. Press the END key to select the last item on the tree.
  8. Repeat the last four steps with this last one.

Actual behavior:

When entering into the expanded item, the next item gains the focus. It occurs only if the expanded item is not the last.

If the expanded item is the last, it works as expected.

Expected behavior:

Expected behavior is like any other tree view even under visual studio, like the solution explorer.

System configuration

NVDA installed/portable/running from source:


NVDA version:


Windows version:

Version 10.0.17763 build 17763

Name and version of other software in use when reproducing the issue:

Visual Studio Community 15.9.7

Other information about your system:

Other questions

Does the issue still occur after restarting your PC?

Yes, reboot doesn't change anything.

Have you tried any other versions of NVDA?

I've used all stable versions of nvda between 2017.3 and this alpha I'm using now.

Copy link
Contributor Author

CC @LeonarddeR

This is related to #7504.

@nvaccessAuto nvaccessAuto added this to the 2019.2 milestone May 6, 2019
feerrenrut pushed a commit that referenced this issue May 6, 2019
Enforced UIA implementation of all UI elements in Visual Studio 15.3 and up.

This adds an overlay class for the tree view items in object explorer. It takes a `focusRedirect` event and checks for its states
If `STATE_FOCUSED` is not in the states set, it redirects the event to the real focused object.
I'm not really sure if it is the right way of doing this.

Closes #9311
Copy link


found a regression when using vs 2019 (16.1 preview 3)

when openning menu, an exception is thrown and vs is not accessible at all.

ERROR - queueHandler.flushQueue (16:09:01.252):
Error in func fakeFocus from eventQueue
Traceback (most recent call last):
File "queueHandler.pyc", line 53, in flushQueue
File "IAccessibleHandler.pyc", line 819, in fakeFocus
File "NVDAObjects_init
.pyc", line 280, in objectWithFocus
File "NVDAObjects_init
.pyc", line 93, in call
File "appModules\devenv.pyc", line 94, in chooseNVDAObjectOverlayClasses
NameError: global name 'vs_major' is not defined

Copy link
Contributor Author


Sorry for this stupid error.

I published #9557 that fix this.

Thanks for your advise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging a pull request may close this issue.

3 participants