Browse Source

Merge pull request #129 from pajasevi/feature/allow-submit-onEnter

Allow submitting peer on Enter key press
renovate/lint-staged-8.x
JimmyMow 7 years ago
committed by GitHub
parent
commit
c27a1c3c82
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/components/Peers/PeerForm.js

2
app/components/Peers/PeerForm.js

@ -20,7 +20,7 @@ const PeerForm = ({ form, setForm, connect }) => {
parentSelector={() => document.body}
className={styles.modal}
>
<div className={styles.form}>
<div className={styles.form} onKeyPress={event => event.charCode === 13 && submit()}>
<h1 className={styles.title}>Connect to a peer</h1>
<section className={styles.pubkey}>

Loading…
Cancel
Save