MenuItemCommands

Properties

Link copied to clipboard
Link copied to clipboard

Navigate backwards in the menu tree structure. For a PopupMenu, it just closes it. Otherwise, it will bubble up the tree till it gets to a Menu, where it will cause the previous Menu in the MenuBar to be selected.

Link copied to clipboard
Link copied to clipboard

Navigate forwards in the menu tree structure. For a SubMenu, this will open the open. For other menu items, it will bubble up the tree till it gets to a Menu, where it will cause the next Menu in the MenuBar to be selected.

Link copied to clipboard

Functions

Link copied to clipboard
fun define(name: String, text: String, keyCombination: KeyCombination? = null, tooltip: String? = null): Command

Adds a single Command to the map (commands).

fun define(name: String, text: String, keyCombination: KeyCombination? = null, tooltip: String? = null, block: Command.() -> Unit): Command