Ahmad Daneshvar
07/30/2022, 3:51 PMModifier.mouseClickable{}
Also, it’s need to transfer the focus to the one of modal items. You can do this by the focusRequester
and then call focusRequester.requestFocus
on it.
By this way you can open new custom modal and transfer focus from main window to it.
Thats it!Modifier.mouseClickable
, use this one:
Modifier.onPointerEvent(PointerEventType.Press, pass = PointerEventPass.Main) { /* Click closure */}
Afzal Najam
08/24/2022, 7:58 PM