mirror of
https://github.com/florisboard/florisboard.git
synced 2024-09-19 19:42:20 +02:00
Change extended actions toggle so it closes actions overflow (#2035)
This commit is contained in:
parent
94b62b7224
commit
ae2a1db1ef
@ -222,7 +222,12 @@ private fun SmartbarMainRow(modifier: Modifier = Modifier) {
|
||||
@Composable
|
||||
fun ExtendedActionsToggle() {
|
||||
IconButton(
|
||||
onClick = { prefs.smartbar.extendedActionsExpanded.set(!extendedActionsExpanded) },
|
||||
onClick = {
|
||||
if (/* was */ extendedActionsExpanded) {
|
||||
keyboardManager.activeState.isActionsOverflowVisible = false
|
||||
}
|
||||
prefs.smartbar.extendedActionsExpanded.set(!extendedActionsExpanded)
|
||||
},
|
||||
) {
|
||||
Box(
|
||||
modifier = Modifier
|
||||
|
Loading…
Reference in New Issue
Block a user