Skip to content

Commit

Permalink
Merge pull request #2719 from myxmaster/allow_return_key_for_password…
Browse files Browse the repository at this point in the history
…_login

Allow return key for password login
  • Loading branch information
kaloudis authored Jan 9, 2025
2 parents 2ccf02a + 54b88ad commit bdd6fae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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

0 comments on commit bdd6fae

Please sign in to comment.