Skip to content

Commit

Permalink
Save State
Browse files Browse the repository at this point in the history
  • Loading branch information
chiaramooney committed Jul 20, 2023
1 parent d93d900 commit 760ddca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ HRESULT __stdcall CompositionDynamicAutomationProvider::GetPatternProvider(PATTE
auto accessibilityRole = props->accessibilityRole;
// Invoke control pattern is used to support controls that do not maintain state
// when activated but rather initiate or perform a single, unambiguous action.
if (patternId == UIA_InvokePatternId && accessibilityRole == "" || accessibilityRole == "button" ||
if (patternId == UIA_InvokePatternId && accessibilityRole == "button" ||
accessibilityRole == "imagebutton" ||
accessibilityRole == "link" || accessibilityRole == "splitbutton" || (accessibilityRole == "menuitem" && props->onAccessibilityTap) || (accessibilityRole == "treeitem" && props->onAccessibilityTap)) {
*pRetVal = static_cast<IInvokeProvider *>(this);
Expand Down

0 comments on commit 760ddca

Please sign in to comment.