fix: Do not dynamically change between ime actions #434
This commit is contained in:
parent
30d6420f5a
commit
31186607de
|
@ -446,10 +446,7 @@ fun UserVerificationScreen(
|
||||||
testTag = "field:password",
|
testTag = "field:password",
|
||||||
value = content.password,
|
value = content.password,
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
imeAction = when {
|
imeAction = ImeAction.Go,
|
||||||
keyboardOnGo != null -> ImeAction.Go
|
|
||||||
else -> ImeAction.Default
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
keyboardActions = KeyboardActions(
|
keyboardActions = KeyboardActions(
|
||||||
onGo = keyboardOnGo,
|
onGo = keyboardOnGo,
|
||||||
|
|
|
@ -175,7 +175,6 @@ fun ChangePasswordScreen(
|
||||||
leading = {},
|
leading = {},
|
||||||
trailing = {},
|
trailing = {},
|
||||||
onTextChange = query?.onChange,
|
onTextChange = query?.onChange,
|
||||||
onGoClick = null,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -332,8 +332,7 @@ fun LoginContent(
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
imeAction = when {
|
imeAction = when {
|
||||||
!passwordIsLastField -> ImeAction.Next
|
!passwordIsLastField -> ImeAction.Next
|
||||||
keyboardOnGo != null -> ImeAction.Go
|
else -> ImeAction.Go
|
||||||
else -> ImeAction.Default
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
keyboardActions = KeyboardActions(
|
keyboardActions = KeyboardActions(
|
||||||
|
@ -363,8 +362,7 @@ fun LoginContent(
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
imeAction = when {
|
imeAction = when {
|
||||||
!clientSecretIsLastField -> ImeAction.Next
|
!clientSecretIsLastField -> ImeAction.Next
|
||||||
keyboardOnGo != null -> ImeAction.Go
|
else -> ImeAction.Go
|
||||||
else -> ImeAction.Default
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
keyboardActions = KeyboardActions(
|
keyboardActions = KeyboardActions(
|
||||||
|
|
|
@ -418,10 +418,7 @@ private fun ColumnScope.LoginOtpScreenContentAuthenticator(
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
autoCorrect = false,
|
autoCorrect = false,
|
||||||
keyboardType = KeyboardType.Number,
|
keyboardType = KeyboardType.Number,
|
||||||
imeAction = when {
|
imeAction = ImeAction.Go,
|
||||||
keyboardOnGo != null -> ImeAction.Go
|
|
||||||
else -> ImeAction.Default
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
keyboardActions = KeyboardActions(
|
keyboardActions = KeyboardActions(
|
||||||
onGo = keyboardOnGo,
|
onGo = keyboardOnGo,
|
||||||
|
@ -493,10 +490,7 @@ private fun ColumnScope.LoginOtpScreenContentEmail(
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
autoCorrect = false,
|
autoCorrect = false,
|
||||||
keyboardType = KeyboardType.Number,
|
keyboardType = KeyboardType.Number,
|
||||||
imeAction = when {
|
imeAction = ImeAction.Go,
|
||||||
keyboardOnGo != null -> ImeAction.Go
|
|
||||||
else -> ImeAction.Default
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
keyboardActions = KeyboardActions(
|
keyboardActions = KeyboardActions(
|
||||||
onGo = keyboardOnGo,
|
onGo = keyboardOnGo,
|
||||||
|
|
|
@ -162,10 +162,7 @@ private fun ColumnScope.ElevatedAccessContent(
|
||||||
testTag = "field:password",
|
testTag = "field:password",
|
||||||
value = content.password,
|
value = content.password,
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
imeAction = when {
|
imeAction = ImeAction.Go,
|
||||||
keyboardOnGo != null -> ImeAction.Go
|
|
||||||
else -> ImeAction.Default
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
keyboardActions = KeyboardActions(
|
keyboardActions = KeyboardActions(
|
||||||
onGo = keyboardOnGo,
|
onGo = keyboardOnGo,
|
||||||
|
|
|
@ -175,7 +175,6 @@ fun CipherFiltersListScreen(
|
||||||
leading = {},
|
leading = {},
|
||||||
trailing = {},
|
trailing = {},
|
||||||
onTextChange = query?.onChange,
|
onTextChange = query?.onChange,
|
||||||
onGoClick = null,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -199,7 +199,6 @@ fun WordlistViewScreen(
|
||||||
leading = {},
|
leading = {},
|
||||||
trailing = {},
|
trailing = {},
|
||||||
onTextChange = query?.onChange,
|
onTextChange = query?.onChange,
|
||||||
onGoClick = null,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,6 @@ fun SearchSettingsScreenContent(
|
||||||
leading = {},
|
leading = {},
|
||||||
trailing = {},
|
trailing = {},
|
||||||
onTextChange = state.query.onChange,
|
onTextChange = state.query.onChange,
|
||||||
onGoClick = null,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,6 @@ fun SearchTextField(
|
||||||
leading: @Composable () -> Unit,
|
leading: @Composable () -> Unit,
|
||||||
trailing: @Composable () -> Unit,
|
trailing: @Composable () -> Unit,
|
||||||
onTextChange: ((String) -> Unit)?,
|
onTextChange: ((String) -> Unit)?,
|
||||||
onGoClick: (() -> Unit)?,
|
|
||||||
) {
|
) {
|
||||||
val interactionSource = remember {
|
val interactionSource = remember {
|
||||||
MutableInteractionSource()
|
MutableInteractionSource()
|
||||||
|
@ -143,14 +142,9 @@ fun SearchTextField(
|
||||||
},
|
},
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
keyboardType = KeyboardType.Text,
|
keyboardType = KeyboardType.Text,
|
||||||
imeAction = if (onGoClick != null) ImeAction.Go else ImeAction.Done,
|
imeAction = ImeAction.Done,
|
||||||
autoCorrect = false,
|
autoCorrect = false,
|
||||||
),
|
),
|
||||||
keyboardActions = KeyboardActions(
|
|
||||||
onGo = {
|
|
||||||
onGoClick?.invoke()
|
|
||||||
},
|
|
||||||
),
|
|
||||||
singleLine = true,
|
singleLine = true,
|
||||||
)
|
)
|
||||||
if (count != null) {
|
if (count != null) {
|
||||||
|
|
|
@ -173,7 +173,6 @@ fun JustDeleteMeListScreen(
|
||||||
leading = {},
|
leading = {},
|
||||||
trailing = {},
|
trailing = {},
|
||||||
onTextChange = query?.onChange,
|
onTextChange = query?.onChange,
|
||||||
onGoClick = null,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,6 @@ fun JustGetMyDataListScreen(
|
||||||
leading = {},
|
leading = {},
|
||||||
trailing = {},
|
trailing = {},
|
||||||
onTextChange = query?.onChange,
|
onTextChange = query?.onChange,
|
||||||
onGoClick = null,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,10 +186,7 @@ fun ColumnScope.SetupContent(
|
||||||
label = stringResource(Res.string.setup_field_app_password_label),
|
label = stringResource(Res.string.setup_field_app_password_label),
|
||||||
value = setupState.password,
|
value = setupState.password,
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
imeAction = when {
|
imeAction = ImeAction.Go,
|
||||||
keyboardOnGo != null -> ImeAction.Go
|
|
||||||
else -> ImeAction.Default
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
keyboardActions = KeyboardActions(
|
keyboardActions = KeyboardActions(
|
||||||
onGo = keyboardOnGo,
|
onGo = keyboardOnGo,
|
||||||
|
|
|
@ -176,10 +176,7 @@ private fun UnlockScreen(
|
||||||
testTag = "field:password",
|
testTag = "field:password",
|
||||||
value = unlockState.password,
|
value = unlockState.password,
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
imeAction = when {
|
imeAction = ImeAction.Go,
|
||||||
keyboardOnGo != null -> ImeAction.Go
|
|
||||||
else -> ImeAction.Default
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
keyboardActions = KeyboardActions(
|
keyboardActions = KeyboardActions(
|
||||||
onGo = keyboardOnGo,
|
onGo = keyboardOnGo,
|
||||||
|
|
|
@ -171,7 +171,6 @@ fun PasskeysListScreen(
|
||||||
leading = {},
|
leading = {},
|
||||||
trailing = {},
|
trailing = {},
|
||||||
onTextChange = query?.onChange,
|
onTextChange = query?.onChange,
|
||||||
onGoClick = null,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,7 +171,6 @@ fun TwoFaServiceListScreen(
|
||||||
leading = {},
|
leading = {},
|
||||||
trailing = {},
|
trailing = {},
|
||||||
onTextChange = query?.onChange,
|
onTextChange = query?.onChange,
|
||||||
onGoClick = null,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,6 @@ fun CustomSearchbarContent(
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onTextChange = searchFieldModel.onChange,
|
onTextChange = searchFieldModel.onChange,
|
||||||
onGoClick = null,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue