klyn.gui.windows.MenuBar.closeOpenMenu
method
public closeOpenMenu() as Void:
Description

Closes the currently opened menu and clears transient hover state.

The native GUI backend calls this when focus moves to another widget or when a pointer press occurs outside the bar/popup. Application code can also use it to dismiss menus after a custom shortcut.

window.menuBar.closeOpenMenu()