Skip to content

Commit

Permalink
fix: reappearing keyboard [WPB-10889]
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Jan 8, 2025
1 parent 340a103 commit be4a31e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ private fun MessageComposerTextInput(
} else {
isReadOnly = true
keyboardController?.hide()
focusRequester.freeFocus()
}
}

Expand All @@ -312,9 +313,7 @@ private fun MessageComposerTextInput(
modifier = modifier
.focusRequester(focusRequester)
.onFocusChanged { focusState ->
if (focusState.isFocused) {
onFocusChanged(focusState.isFocused)
}
onFocusChanged(focusState.isFocused)
}
.onPreInterceptKeyBeforeSoftKeyboard { event ->
if (event.key.nativeKeyCode == android.view.KeyEvent.KEYCODE_BACK) {
Expand Down

0 comments on commit be4a31e

Please sign in to comment.