MenuButton.setPrimary

Sets whether menu button acts as a primary menu.

Primary menus can be opened with the <kbd>F10</kbd> key.

class MenuButton
void
setPrimary
(
bool primary
)

Parameters

primary bool

whether the menubutton should act as a primary menu