Skip to content

Commit

Permalink
In Windows 10, extraneous information is no longer reported when pres…
Browse files Browse the repository at this point in the history
…sing alt+tab or alt+shift+tab to switch between applications.

Fixes #5116.
  • Loading branch information
jcsteh committed Jul 10, 2015
2 parents 8cc1675 + a0c1045 commit 8d35b80
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions source/appModules/explorer.py
Expand Up @@ -17,6 +17,19 @@
from NVDAObjects.IAccessible import sysListView32, IAccessible
from NVDAObjects.UIA import UIA

# Suppress incorrect Win 10 Task switching window focus
class MultitaskingViewFrameWindow(UIA):
shouldAllowUIAFocusEvent=False

# suppress focus ancestry for task switching list items if alt is held down (alt+tab)
class MultitaskingViewFrameListItem(UIA):

def _get_container(self):
if winUser.getAsyncKeyState(winUser.VK_MENU)&32768:
return api.getDesktopObject()
else:
return super(MultitaskingViewFrameListItem,self).container

# support for Win8 start screen search suggestions.
class SuggestionListItem(UIA):

Expand Down Expand Up @@ -175,6 +188,10 @@ def chooseNVDAObjectOverlayClasses(self, obj, clsList):
clsList.insert(0, ImmersiveLauncher)
elif uiaClassName=="ListViewItem" and obj.UIAElement.cachedAutomationId.startswith('Suggestion_'):
clsList.insert(0,SuggestionListItem)
elif uiaClassName=="MultitaskingViewFrame" and role==controlTypes.ROLE_WINDOW:
clsList.insert(0,MultitaskingViewFrameWindow)
elif obj.windowClassName=="MultitaskingViewFrame" and role==controlTypes.ROLE_LISTITEM:
clsList.insert(0,MultitaskingViewFrameListItem)

def event_NVDAObject_init(self, obj):
windowClass = obj.windowClassName
Expand Down
1 change: 1 addition & 0 deletions user_docs/en/changes.t2t
Expand Up @@ -17,6 +17,7 @@
- In Firefox, NVDA no longer tries to create a description for ARIA tab panels based on all text inside. (#4638)
- In Internet Explorer and other MSHTML controls, tabbing into sections, articles or dialogs no longer reports all contents of the container as its name. (#5021, #5025)
- When using Baum/HumanWare/APH braille displays with a braille keyboard, braille input no longer stops functioning after pressing another type of key on the display. (#3541)
- In Windows 10, extraneous information is no longer reported when pressing alt+tab or alt+shift+tab to switch between applications. (#5116)


= 2015.2 =
Expand Down

0 comments on commit 8d35b80

Please sign in to comment.