Repository navigation
Commit 1459e5f
[release/10.0] Fix inverted NoClientNotifications check in Control.AccessibilityNotifyClients (#15216)
* Fix inverted NoClientNotifications check in Control.AccessibilityNotifyClients (#15177)
The rename of LocalAppContextSwitches to AppContextSwitches in #12840 dropped the
negation on this line (and only on this one of the seven that use the switch), so
controls only call NotifyWinEvent when the app has asked for NO client notifications,
that is, never by default. MSAA clients (JAWS among them) stopped receiving the
WinEvents raised through this method: menu popup start/end, focus of ToolStrip items,
state and selection changes, etc.
.NET 9: if (IsHandleCreated && !LocalAppContextSwitches.NoClientNotifications)
.NET 10: if (IsHandleCreated && AppContextSwitches.NoClientNotifications)
Adds tests that listen to the WinEvent; the existing ones only checked that the
call did not throw.
* Fix comment formatting in ControlTests.AccessibilityNotifyClients.cs
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Juanjo <juanjo@jmontiel.es>
Co-authored-by: Shyam Gupta <shgu@microsoft.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>1 parent cf3f34b commit 1459e5f
2 files changed
Lines changed: 109 additions & 1 deletion
File tree
- src
- System.Windows.Forms/System/Windows/Forms
- test/unit/System.Windows.Forms/System/Windows/Forms
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4226 | 4226 | | |
4227 | 4227 | | |
4228 | 4228 | | |
4229 | | - | |
| 4229 | + | |
4230 | 4230 | | |
4231 | 4231 | | |
4232 | 4232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
0 commit comments