Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow return key for password login #2719

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ interface TextInputProps {
ref?: React.Ref<TextInputRN>;
error?: boolean;
onFocus?: any;
onSubmitEditing?: () => void;
}

const TextInput = React.forwardRef<TextInputRN, TextInputProps>(
Expand Down Expand Up @@ -167,6 +168,7 @@ const TextInput = React.forwardRef<TextInputRN, TextInputProps>(
autoFocus={autoFocus}
secureTextEntry={secureTextEntry}
onPressIn={onPressIn}
onSubmitEditing={props.onSubmitEditing}
ref={ref}
/>
{suffix ? (
Expand Down
1 change: 1 addition & 0 deletions views/Lockscreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ export default class Lockscreen extends React.Component<
...styles.textInput,
paddingTop: passphraseAttempt === '' ? 6 : 2
}}
onSubmitEditing={() => this.onAttemptLogIn()}
/>
<View style={styles.showHideToggle}>
<ShowHideToggle
Expand Down
Loading