onPopupTrigger

fun onPopupTrigger(combination: HandlerCombination = HandlerCombination.AFTER, handler: (MouseEvent) -> Unit)

handler will fire when the secondary mouse button is pressed/released depending on the platform.

  • Windows : Secondary button released

  • All other platforms : Secondary button pressed.

Note, you do not need to test for MouseEvent.isSecondary.