Skip to content

Commit

Permalink
capitalize first letter
Browse files Browse the repository at this point in the history
  • Loading branch information
migulyaev committed Oct 4, 2023
1 parent 18e2741 commit 9eb433a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.TextRange
import androidx.compose.ui.text.input.ImeAction
import androidx.compose.ui.text.input.KeyboardCapitalization
import androidx.compose.ui.text.input.TextFieldValue
import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
Expand Down Expand Up @@ -307,6 +308,9 @@ fun ComposeNewMessageScreen(
placeHolderText = stringResource(id = R.string.new_message_body_hint),
singleLine = false,
placeholderColor = MaterialTheme.colorScheme.onSurfaceVariant,
keyboardOptions = KeyboardOptions.Default.copy(
capitalization = KeyboardCapitalization.Sentences,
),
modifier = Modifier
.then(Modifier)
.applyIf(uiState.messageExceedsLimitTextError != null) {
Expand Down

0 comments on commit 9eb433a

Please sign in to comment.