Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 0201600

Browse files
author
Rodrigo Moya
authored
Merge pull request #8974 from mono/fix/977760-add-event-accessibility-changed
[PlatformService] Added `AccessibilityInUseChanged`
2 parents 248b26c + bf96690 commit 0201600

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,18 @@ internal virtual void RestartIde (bool reopenWorkspace)
499499
proc.Start ();
500500
}
501501

502-
public static bool AccessibilityInUse { get; protected set; }
502+
static bool accessibilityInUse;
503+
public static event EventHandler AccessibilityInUseChanged;
504+
public static bool AccessibilityInUse {
505+
get => accessibilityInUse;
506+
protected set {
507+
if (accessibilityInUse != value) {
508+
accessibilityInUse = value;
509+
AccessibilityInUseChanged?.Invoke (null, EventArgs.Empty);
510+
}
511+
}
512+
}
513+
503514
public static bool AccessibilityKeyboardFocusInUse { get; protected set; }
504515

505516
internal virtual string GetNativeRuntimeDescription ()

0 commit comments

Comments
 (0)