Skip to content

Commit 2e37ca6

Browse files
authored
Merge pull request #323 from synonymdev/enter-btc-address-keyboard
Keyboard with ImeAction.Done on entering send address
2 parents fbf6b47 + 2bc94ea commit 2e37ca6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/src/main/java/to/bitkit/ui/screens/wallets/send/SendAddressScreen.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
77
import androidx.compose.foundation.layout.height
88
import androidx.compose.foundation.layout.navigationBarsPadding
99
import androidx.compose.foundation.layout.padding
10+
import androidx.compose.foundation.text.KeyboardOptions
1011
import androidx.compose.runtime.Composable
1112
import androidx.compose.runtime.LaunchedEffect
1213
import androidx.compose.runtime.remember
@@ -15,6 +16,8 @@ import androidx.compose.ui.focus.FocusRequester
1516
import androidx.compose.ui.focus.focusRequester
1617
import androidx.compose.ui.platform.testTag
1718
import androidx.compose.ui.res.stringResource
19+
import androidx.compose.ui.text.input.ImeAction
20+
import androidx.compose.ui.text.input.KeyboardCapitalization
1821
import androidx.compose.ui.tooling.preview.Preview
1922
import androidx.compose.ui.unit.dp
2023
import kotlinx.coroutines.delay
@@ -70,6 +73,11 @@ fun SendAddressScreen(
7073
value = uiState.addressInput,
7174
onValueChange = { onEvent(SendEvent.AddressChange(it)) },
7275
minLines = 12,
76+
keyboardOptions = KeyboardOptions(
77+
capitalization = KeyboardCapitalization.None,
78+
imeAction = ImeAction.Done,
79+
autoCorrectEnabled = false
80+
),
7381
textStyle = AppTextStyles.Title,
7482
modifier = Modifier
7583
.fillMaxWidth()

0 commit comments

Comments
 (0)