public setMenu(key as Object, title as String, compactTitle as String = "", action as Invocable<Void> = null) as Void:
Adds or updates a menu entry rendered from the left edge.
| Parameter | Description |
|---|---|
key | Keyboard shortcut associated with the entry. |
title | Full entry title. |
compactTitle | Short title used when terminal width is constrained. |
action | Optional action invoked by the shortcut or a mouse click. |
bar.setMenu("F1", "Home")