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