rob42
06/10/2024, 1:57 PMenabled
property all the way down the tree and manually implement this?
e.g. something like
Column(disableAllInteractions = true) {
MyClickableItem(Modifier.onClick {}) // should receive no click events
BasicTextField(onValueChange = {}) // should not be focusable, even with keyboard tabbing
//...
}
rob42
06/10/2024, 2:01 PMModifier.pointerInput(Unit) {
awaitPointerEventScope {
while (true) {
awaitPointerEvent(pass = PointerEventPass.Initial)
.changes
.forEach(PointerInputChange::consume)
}
}
}.focusProperties { canFocus = false }