Allow manual connection by pressing Enter

This commit is contained in:
Philipp Stracker 2025-02-12 15:58:02 +01:00
parent 0fc0c11653
commit a75204804d
No known key found for this signature in database

View file

@ -157,6 +157,7 @@ const ManualConnectionForm = () => {
label={ clientIdLabel } label={ clientIdLabel }
value={ manualClientId } value={ manualClientId }
onChange={ setManualClientId } onChange={ setManualClientId }
onConfirm={ handleManualConnect }
className={ classNames( { className={ classNames( {
'ppcp--has-error': ! clientValid, 'ppcp--has-error': ! clientValid,
} ) } } ) }
@ -173,6 +174,7 @@ const ManualConnectionForm = () => {
label={ secretKeyLabel } label={ secretKeyLabel }
value={ manualClientSecret } value={ manualClientSecret }
onChange={ setManualClientSecret } onChange={ setManualClientSecret }
onConfirm={ handleManualConnect }
type="password" type="password"
/> />
<Button <Button