A menu that opens under the pointer on a right click.
<.context_menu id="file-menu">
<div class="lu-panel">Right click here</div>
<:item phx-click="rename" icon="edit" kbd="F2">Rename</:item>
<:item phx-click="copy">Copy</:item>
<:item phx-click="delete" tone="danger" divider icon="trash">Delete</:item>
</.context_menu>The hook LedgerUI.ContextMenu (priv/static/ledger_ui/hooks/context_menu.js) opens the menu
at the pointer (kept inside the window, in the top layer), moves the focus to the first item
and closes it on a click outside, Escape, a scroll and when an item is chosen. The arrows,
Home, End and letters move between the items.
Besides the README attrs the :item slot takes icon (a name) and kbd (a shortcut shown
as text).