I want a DesktopTextField to have a contextual menu so that some values can be insertet via menu.
I added the appropriate event handlers and have the following code in the ConstructContextualMenu handler:
base.AddMenu(new DesktopMenuItem("Line1"))
base.AddMenu(new DesktopMenuItem("Line2"))
base.AddMenu(new DesktopMenuItem("Line3"))
When I run the app I get my 3 lines when I do a contextual click in that field, but macOS adds a separator and another line “Autofill” where I can select “Contact…” and “Password…”.
What do I have to do so that I just get the menuitems that I add myself and that the OS is not messing with my menu?
(macOS 15.5)