mono / xwt

A cross-platform UI toolkit for creating desktop applications with .NET and Mono
MIT License
1.37k stars 241 forks source link

[Gtk][WPF] A11y fixes for menus and popovers #992

Closed BretJohnson closed 5 years ago

BretJohnson commented 5 years ago

This PR contains two a11y fixes:

  1. The Esc key now closes Gtk based popovers

  2. Previously, setting a11y info (like the name) on a popup menu didn't work for WPF. This is now supported. Since the menu is actually created when it's first displayed, the a11y settings are remembered in the AccessibilityBackend members and then copied to the menu when first created, similar to how we already handle this for Popovers.