So, I have a submenu that I have for the options menu item. I want a list of checked records that the user can select / deselect as much as they want. The only problem I cannot solve is how to prevent the options menu from closing when one of these checkboxes is clicked. I saw that the performShortcut parameter has the FLAG_PERFORM_NO_CLOSE flag, but I'm not sure how to use this method. I tried a lot of things, but I'm confused about where the keyevent was supposed to come from, or even if this is the right method that I should look at.
So tl; dr: How to prevent closing the menu / submenu of options when selecting an option?
source share