@@ -91,6 +91,9 @@ internal class SearchComponent(
|
|||||||
state = lazyListState,
|
state = lazyListState,
|
||||||
reverse = reverse,
|
reverse = reverse,
|
||||||
userScrollEnabled = !state.isDragged,
|
userScrollEnabled = !state.isDragged,
|
||||||
|
onHideKeyboard = {
|
||||||
|
state.isSearchBarFocused = false
|
||||||
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ fun SearchColumn(
|
|||||||
state: LazyListState = rememberLazyListState(),
|
state: LazyListState = rememberLazyListState(),
|
||||||
reverse: Boolean = false,
|
reverse: Boolean = false,
|
||||||
userScrollEnabled: Boolean = true,
|
userScrollEnabled: Boolean = true,
|
||||||
|
onHideKeyboard: () -> Unit = {},
|
||||||
) {
|
) {
|
||||||
|
|
||||||
val columns = LocalGridSettings.current.columnCount
|
val columns = LocalGridSettings.current.columnCount
|
||||||
@@ -193,6 +194,7 @@ fun SearchColumn(
|
|||||||
selectedProfileIndex = selectedAppProfileIndex,
|
selectedProfileIndex = selectedAppProfileIndex,
|
||||||
onProfileSelected = {
|
onProfileSelected = {
|
||||||
selectedAppProfileIndex = it
|
selectedAppProfileIndex = it
|
||||||
|
onHideKeyboard()
|
||||||
},
|
},
|
||||||
isProfileLocked = profileStates.getOrNull(selectedAppProfileIndex)?.locked == true,
|
isProfileLocked = profileStates.getOrNull(selectedAppProfileIndex)?.locked == true,
|
||||||
onProfileLockChange = { p, l ->
|
onProfileLockChange = { p, l ->
|
||||||
|
|||||||
Reference in New Issue
Block a user