Skip to content

Commit

Permalink
Shell Experience Host: Brightness button is now a plain button, not a…
Browse files Browse the repository at this point in the history
… toggle button. Re nvaccess#8845.

Brightness button is now a plain button, not a toggle button. Note that this control is now a slider in Windows 10 19H1 build 18277 and later.
  • Loading branch information
josephsl committed Nov 17, 2018
1 parent 1d58c49 commit 7137067
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/appModules/shellexperiencehost.py
Expand Up @@ -9,10 +9,20 @@

import appModuleHandler
from NVDAObjects.IAccessible import IAccessible, ContentGenericClient
from NVDAObjects.UIA import UIA
import controlTypes
import ui

class AppModule(appModuleHandler.AppModule):

def event_NVDAObject_init(self, obj):
if isinstance(obj, UIA):
# #8845: Brightness button in Action Center is a button, not a toggle button.
# Brightness control is now a slider in build 18277.
if obj.UIAElement.cachedAutomationID == "Microsoft.QuickAction.Brightness":
obj.role = controlTypes.ROLE_BUTTON
obj.states.discard(controlTypes.STATE_CHECKABLE)

def chooseNVDAObjectOverlayClasses(self,obj,clsList):
if isinstance(obj, IAccessible):
try:
Expand Down

0 comments on commit 7137067

Please sign in to comment.