I am trying to find a way for a making a row both toggleable and having a dropdown menu if right click is clicked in Jetpack Compose Desktop.
Row( modifier = Modifier.height(IntrinsicSize.Min) .background(if (selected) MaterialTheme.colors.secondary else Color.Transparent) .mouseClickable( onClick = { if (this.buttons.isSecondaryPressed) { onRightMouseClick.invoke(index) } }) .toggleable( value = !selected, onValueChange = { onItemSelected.invoke(!selected, index) } ) ) Is there any way to consume both events at the same time? If i change the order of the modifiers, then the second one is always consumed.