AvaloniaUI/Avalonia

Windows window context menu (Alt+Space) is not showing

niksedk opened this issue · 2 comments

Describe the bug

On Windows, Alt+Space normally shows a window context menu:

Firefox:
Image

Chrome:
Image

Visual Studio Code:
Image

I think this should work for Avalonia apps on Windows too.

I'm new to Avalonia UI, so I might have missed something...

To Reproduce

Press Alt+Space in e.g. the Avalonia demo apps.

Expected behavior

Alt+Space should show the window context menu on Windows.

Avalonia version

11.3.6

OS

Windows

Additional context

No response

case WindowsMessage.WM_SYSCOMMAND:
// Disable system handling of Alt/F10 menu keys.
if ((SysCommands)wParam == SysCommands.SC_KEYMENU && HighWord(ToInt32(lParam)) <= 0)
return IntPtr.Zero;

Disabled by 9d54cd3 because of #6592

Also duplicate of #14545 and #14518

@miloush: thx for the info - still hoping for a solution :)

I will close this, as a duplicate exists.

(Works in Maui)