From v11.6.0, map view (only) gains new mouse-based actions, each with an associated action-type attribute. 'Mouse' refers to ma view input via mouse or trackpad:
- OnMouseDown ($OnMouseDown). OnMouseDown is invoked when the mouse is left-clicked in the body of a note.
- OnMouseUp ($OnMouseUp). OnMouseUp is invoked when the mouse button is released.
- OnMouseDrag ($OnMouseDrag). OnMouseDrag is invoked while the mouse is down if the mouse is moved and the note is locked. If $Lock is false, the note is repositioned in the normal way and OnMouseDrag is not invoked.
These mouse actions bind two local variables when invoked.
- The List-type variable modifierKeys contains a list of keys that were pressed when the mouse of clicked.
- The Dictionary-type variable UI holds information about the click and its environment.
See also—notes linking to here: