Avalonia/api
StefanKoell b46126714b
Fixes and improves several access key (accelerator) related issues (#17292)
* fix accelerator behavior for menu items and labels

* add elements with matching accelerator to test cycling in sub menus

* Add AccessKeyHandler tests for accelerators with more than one match

* Implement accelerator behavior based on WPF handling

* Remove commented code

* Remove OnAccessKey override => handled by DefaultMenuInteractionHandler

* remove obsolete test

* handle OnAccessKeyPressed for selected tab item

* fix unit tests

* use AccessKeyEvent instead of AccessKeyPressedEvent in unit tests

* navigate menu with and without ALT key

* Revert formatting changes in Tests

* Fix AccessKeyHandler comments

* move private types to bottom

* Remove lock statements, optimize removal of AccessKeyRegistrations

* remove call to Dispatcher.UIThread.Post

* simplifiy AccessKeyHandler.SortByHierarchy

* remove unnecessary method AccessKeyHandler.GetTargetsForSender

* regenerate API suppression file

* revert unneeded changes in MenuPage.axaml

* correct formatting changes

* do not sort by hierarchy if too few targets

* make AccessKeyEventArgs internal

* make AccessKeyPressedEventArgs internal

---------

Co-authored-by: Hans Docsek <hans.docsek@gmail.com>
2024-11-10 10:27:07 +00:00
..
Avalonia.Android.nupkg.xml Screens api refactor mobile (#16647) 2024-08-13 16:22:39 -07:00
Avalonia.Browser.nupkg.xml Screens api refactor mobile (#16647) 2024-08-13 16:22:39 -07:00
Avalonia.FreeDesktop.nupkg.xml Bump DBus stack take 2 (#15685) 2024-08-19 06:32:06 +00:00
Avalonia.Skia.nupkg.xml 11.2.x Private/PublicAPI adjustments (#16733) 2024-08-19 16:17:25 -07:00
Avalonia.Themes.Fluent.nupkg.xml ResourceProvider upgrade (#16928) 2024-09-12 16:07:13 -07:00
Avalonia.Win32.nupkg.xml `[GeneratedComInterface]` based Windows automation (#16543) 2024-10-31 11:03:29 +00:00
Avalonia.iOS.nupkg.xml Screens api refactor mobile (#16647) 2024-08-13 16:22:39 -07:00
Avalonia.nupkg.xml Fixes and improves several access key (accelerator) related issues (#17292) 2024-11-10 10:27:07 +00:00