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)
|
||||
LaunchedEffect(isSelectionMode) {
|
||||
if (isSelectionMode) {
|
||||
// Используем нативный InputMethodManager для НАДЁЖНОГО закрытия клавиатуры
|
||||
val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
|
||||
imm.hideSoftInputFromWindow(view.windowToken, 0)
|
||||
keyboardController?.hide()
|
||||
focusManager.clearFocus()
|
||||
showEmojiPicker = false
|
||||
|
||||
Reference in New Issue
Block a user