@@ -48,6 +48,7 @@ import androidx.compose.ui.semantics.customActions
4848import androidx.compose.ui.semantics.semantics
4949import androidx.compose.ui.text.TextRange
5050import androidx.compose.ui.text.TextStyle
51+ import androidx.compose.ui.text.input.ImeAction
5152import androidx.compose.ui.text.input.KeyboardType
5253import androidx.compose.ui.text.input.TextFieldValue
5354import androidx.compose.ui.text.input.VisualTransformation
@@ -101,6 +102,7 @@ import kotlinx.collections.immutable.toImmutableList
101102 * @param visualTransformation Transforms the visual representation of the input [value].
102103 * @param keyboardType the preferred type of keyboard input.
103104 * @param keyboardActions the callbacks of keyboard actions.
105+ * @param imeAction the preferred IME action for the keyboard to have.
104106 * @param textToolbarType The type of [TextToolbar] to use on the text field.
105107 * @param textFieldTestTag The optional test tag associated with the inner text field.
106108 * @param cardStyle Indicates the type of card style to be applied.
@@ -129,6 +131,7 @@ fun BitwardenTextField(
129131 shouldAddCustomLineBreaks : Boolean = false,
130132 keyboardType : KeyboardType = KeyboardType .Text ,
131133 keyboardActions : KeyboardActions = KeyboardActions .Default ,
134+ imeAction : ImeAction = ImeAction .Default ,
132135 isError : Boolean = false,
133136 autoFocus : Boolean = false,
134137 visualTransformation : VisualTransformation = VisualTransformation .None ,
@@ -165,6 +168,7 @@ fun BitwardenTextField(
165168 shouldAddCustomLineBreaks = shouldAddCustomLineBreaks,
166169 keyboardType = keyboardType,
167170 keyboardActions = keyboardActions,
171+ imeAction = imeAction,
168172 isError = isError,
169173 autoFocus = autoFocus,
170174 visualTransformation = visualTransformation,
@@ -204,6 +208,7 @@ fun BitwardenTextField(
204208 * @param visualTransformation Transforms the visual representation of the input [value].
205209 * @param keyboardType the preferred type of keyboard input.
206210 * @param keyboardActions the callbacks of keyboard actions.
211+ * @param imeAction the preferred IME action for the keyboard to have.
207212 * @param textToolbarType The type of [TextToolbar] to use on the text field.
208213 * @param textFieldTestTag The optional test tag associated with the inner text field.
209214 * @param cardStyle Indicates the type of card style to be applied.
@@ -235,6 +240,7 @@ fun BitwardenTextField(
235240 shouldAddCustomLineBreaks : Boolean = false,
236241 keyboardType : KeyboardType = KeyboardType .Text ,
237242 keyboardActions : KeyboardActions = KeyboardActions .Default ,
243+ imeAction : ImeAction = ImeAction .Default ,
238244 isError : Boolean = false,
239245 autoFocus : Boolean = false,
240246 visualTransformation : VisualTransformation = VisualTransformation .None ,
@@ -368,7 +374,10 @@ fun BitwardenTextField(
368374 singleLine = singleLine,
369375 readOnly = readOnly,
370376 textStyle = textStyle,
371- keyboardOptions = KeyboardOptions .Default .copy(keyboardType = keyboardType),
377+ keyboardOptions = KeyboardOptions .Default .copy(
378+ keyboardType = keyboardType,
379+ imeAction = imeAction,
380+ ),
372381 keyboardActions = keyboardActions,
373382 trailingIcon = actions?.let {
374383 {
0 commit comments