Two windows, same MenuItem to AddRow, InsertRow

I have two windows with a DesktopListBox, and I want to add what’s in the Clipboard in the LB.

In App, I have a MenuHandler → a window, and in another window, another LB and another MenuHandler.

Actually, using the MenuItem works fine with the second window (not tested on the first window), but Cmd-V activate the App MenuItem (and so display the other window and populate its LB).

Can you help ?

but Cmd-V activate the App MenuItem

have your menu handlers at the end a Return True?

call a method in the MenuHandlers event so you can reuse the functionality.

Yes.

System.DebugLog CurrentMethodName
in the events/methods is always useful

have you copied / paste source code and forget something (a window object) to rename?

i made a test in Xojo 2025r2.1 only one menu is executed if the menu bar is used in app and window.