Skip to content

Commit 41fe0f1

Browse files
committed
feat(join by alias) : better address keyboard config
1 parent 786c2ad commit 41fe0f1

File tree

1 file changed

+6
-0
lines changed
  • features/createroom/impl/src/main/kotlin/io/element/android/features/createroom/impl/joinbyaddress

1 file changed

+6
-0
lines changed

features/createroom/impl/src/main/kotlin/io/element/android/features/createroom/impl/joinbyaddress/JoinRoomByAddressView.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import androidx.compose.foundation.layout.Spacer
1212
import androidx.compose.foundation.layout.fillMaxWidth
1313
import androidx.compose.foundation.layout.height
1414
import androidx.compose.foundation.layout.padding
15+
import androidx.compose.foundation.text.KeyboardOptions
1516
import androidx.compose.material3.ExperimentalMaterial3Api
1617
import androidx.compose.material3.rememberModalBottomSheetState
1718
import androidx.compose.runtime.Composable
@@ -22,6 +23,7 @@ import androidx.compose.ui.Modifier
2223
import androidx.compose.ui.focus.FocusRequester
2324
import androidx.compose.ui.focus.focusRequester
2425
import androidx.compose.ui.res.stringResource
26+
import androidx.compose.ui.text.input.KeyboardCapitalization
2527
import androidx.compose.ui.tooling.preview.PreviewParameter
2628
import androidx.compose.ui.unit.dp
2729
import io.element.android.libraries.designsystem.preview.ElementPreview
@@ -106,6 +108,10 @@ private fun RoomAddressField(
106108
},
107109
onValueChange = onAddressChange,
108110
singleLine = true,
111+
keyboardOptions = KeyboardOptions(
112+
capitalization = KeyboardCapitalization.None,
113+
autoCorrectEnabled = false,
114+
),
109115
)
110116
}
111117

0 commit comments

Comments
 (0)