zng::menu

Function shortcut_txt

source
pub fn shortcut_txt(child: impl UiNode, shortcut: impl UiNode) -> impl UiNode
Expand description

P Menu item shortcut text.

Set on a Button! inside a sub-menu to define the shortcut text.

Note that this does not define the click shortcut, just the display of it.