Browse Source

feature(allow-submit-onEnter): Added keypress event to submit form on Enter

renovate/lint-staged-8.x
pajasevi 7 years ago
parent
commit
ca8027c747
  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} parentSelector={() => document.body}
className={styles.modal} 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> <h1 className={styles.title}>Connect to a peer</h1>
<section className={styles.pubkey}> <section className={styles.pubkey}>

Loading…
Cancel
Save