setShortcut

open fun setShortcut(showShortcut: Boolean, shortcutKey: Char)(source)

Sets the shortcut for the item.

Parameters

showShortcut

Whether a shortcut should be shown(if false, the value of shortcutKey should be ignored).

shortcutKey

The shortcut key that should be shown on the ItemView.