Hello,
when right-clicking an element in your advanced example, it gets automatically selected.
When right-clicking an already selected element while pressing "Ctrl", the element gets deselected - the contextmenu shows anyways. When using the onItem-function, taskRecord seems to be correct, while selection is empty (which is correct, as the item has been deselected...)
Is the "no selection ctx-menu" intentional? Or a side effect that you plan to change at some point?
P.S.: In the advanced example, some options are working, while others don't. E.g. "Edit Task" opens the correct task while "Copy"/"Cut" do not seem to do work. When this is intentional, it'd be nice if copy/cut would be able to handle that out of the box