mirror of
https://github.com/mihonapp/mihon.git
synced 2025-01-28 02:44:56 +01:00
Hide keyboard when a Tracker SearchResultItem is clicked (#1168)
* Hide keyboard on select * Code Review Suggestion
This commit is contained in:
parent
d26c010e57
commit
7ca64a67c5
@ -224,6 +224,7 @@ private fun SearchResultItem(
|
|||||||
) {
|
) {
|
||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
val clipboardManager: ClipboardManager = LocalClipboardManager.current
|
val clipboardManager: ClipboardManager = LocalClipboardManager.current
|
||||||
|
val focusManager = LocalFocusManager.current
|
||||||
val type = trackSearch.publishing_type.toLowerCase(Locale.current).capitalize(Locale.current)
|
val type = trackSearch.publishing_type.toLowerCase(Locale.current).capitalize(Locale.current)
|
||||||
val status = trackSearch.publishing_status.toLowerCase(Locale.current).capitalize(Locale.current)
|
val status = trackSearch.publishing_status.toLowerCase(Locale.current).capitalize(Locale.current)
|
||||||
val description = trackSearch.summary.trim()
|
val description = trackSearch.summary.trim()
|
||||||
@ -243,7 +244,10 @@ private fun SearchResultItem(
|
|||||||
)
|
)
|
||||||
.combinedClickable(
|
.combinedClickable(
|
||||||
onLongClick = { dropDownMenuExpanded = true },
|
onLongClick = { dropDownMenuExpanded = true },
|
||||||
onClick = onClick,
|
onClick = {
|
||||||
|
focusManager.clearFocus()
|
||||||
|
onClick()
|
||||||
|
},
|
||||||
)
|
)
|
||||||
.padding(12.dp),
|
.padding(12.dp),
|
||||||
) {
|
) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user