mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-10-14 19:27:09 -04:00
fix(ui): a step-out's backdrop never takes the pad's focus
This commit is contained in:
1 parent
f164af81e7
commit
fc515aa0e4
1 file changed
+6
-1
@@ -226,9 +226,14 @@ internal fun StepOut(
|
||||
}
|
||||
}
|
||||
|
||||
// The rest of the screen dims behind it, and a tap there folds it.
|
||||
// Opened by touch and then answered with a pad: the pad starts in the box, not behind it.
|
||||
LaunchedEffect(open, grown, inputMode.inputMode) {
|
||||
if (open && grown && inputMode.inputMode == InputMode.Keyboard) { withFrameNanos { }; runCatching { first.requestFocus() } }
|
||||
}
|
||||
// The rest of the screen dims behind it, and a tap there folds it. Never a pad's stop.
|
||||
Box(
|
||||
Modifier.fillMaxSize().graphicsLayer { alpha = dim.value }.background(Color(0x59000000))
|
||||
.focusProperties { canFocus = false }
|
||||
.clickable(interactionSource = remember { MutableInteractionSource() }, indication = null, enabled = open, onClick = onDismiss),
|
||||
)
|
||||
val path = remember { Path() }
|
||||
|
||||
Reference in new issue
Block a user