diff --git a/app/src/main/java/com/bnyro/translate/ui/components/prefs/EditTextPreference.kt b/app/src/main/java/com/bnyro/translate/ui/components/prefs/EditTextPreference.kt index 90f41595..dfd7be2a 100644 --- a/app/src/main/java/com/bnyro/translate/ui/components/prefs/EditTextPreference.kt +++ b/app/src/main/java/com/bnyro/translate/ui/components/prefs/EditTextPreference.kt @@ -18,14 +18,15 @@ package com.bnyro.translate.ui.components.prefs import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.text.KeyboardOptions import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.OutlinedTextField import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier +import androidx.compose.ui.text.input.ImeAction import com.bnyro.translate.util.Preferences -@OptIn(ExperimentalMaterial3Api::class) @Composable fun EditTextPreference( modifier: Modifier = Modifier, @@ -46,6 +47,8 @@ fun EditTextPreference( text = labelText ) }, + singleLine = true, + keyboardOptions = KeyboardOptions(imeAction = ImeAction.Done), modifier = modifier .fillMaxWidth() )