feat: Ensure reliable keyboard dismissal using InputMethodManager in selection mode
This commit is contained in:
@@ -301,6 +301,9 @@ fun ChatDetailScreen(
|
|||||||
// 🔥 Закрываем клавиатуру и emoji picker когда открывается selection mode (action bar с Reply/Forward)
|
// 🔥 Закрываем клавиатуру и emoji picker когда открывается selection mode (action bar с Reply/Forward)
|
||||||
LaunchedEffect(isSelectionMode) {
|
LaunchedEffect(isSelectionMode) {
|
||||||
if (isSelectionMode) {
|
if (isSelectionMode) {
|
||||||
|
// Используем нативный InputMethodManager для НАДЁЖНОГО закрытия клавиатуры
|
||||||
|
val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
|
||||||
|
imm.hideSoftInputFromWindow(view.windowToken, 0)
|
||||||
keyboardController?.hide()
|
keyboardController?.hide()
|
||||||
focusManager.clearFocus()
|
focusManager.clearFocus()
|
||||||
showEmojiPicker = false
|
showEmojiPicker = false
|
||||||
|
|||||||
Reference in New Issue
Block a user