Avalonia v11 sample just not working, Avalonia v0.10.21 just working.
Reason: Avalonia.Controls.HotkeyManager
in V11 allows hotkey registration only on controls that implement IClickableControl,
but in V0.10 hotkeys registration for controls that implement ICommandSource was allowed. Commit where this feature was removed - here,
PR with commit here.
Workaround for Avalonia V11: create hidden buttons with hotkeys and commands/event handlers which will do what you want.