fix: implement instant keyboard dismissal using native API in ChatDetailScreen
This commit is contained in:
@@ -796,10 +796,10 @@ fun ChatDetailScreen(
|
|||||||
MutableInteractionSource()
|
MutableInteractionSource()
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
keyboardController
|
// Мгновенное закрытие клавиатуры через нативный API
|
||||||
?.hide()
|
val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
|
||||||
focusManager
|
imm.hideSoftInputFromWindow(view.windowToken, 0)
|
||||||
.clearFocus()
|
focusManager.clearFocus()
|
||||||
onUserProfileClick(user)
|
onUserProfileClick(user)
|
||||||
},
|
},
|
||||||
contentAlignment =
|
contentAlignment =
|
||||||
@@ -855,10 +855,10 @@ fun ChatDetailScreen(
|
|||||||
MutableInteractionSource()
|
MutableInteractionSource()
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
keyboardController
|
// Мгновенное закрытие клавиатуры через нативный API
|
||||||
?.hide()
|
val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
|
||||||
focusManager
|
imm.hideSoftInputFromWindow(view.windowToken, 0)
|
||||||
.clearFocus()
|
focusManager.clearFocus()
|
||||||
onUserProfileClick(user)
|
onUserProfileClick(user)
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user